Searched refs:NumPages (Results 1 – 2 of 2) sorted by relevance
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcTargetSupport.cpp | 126 unsigned NumPages = ((MinStubs * StubSize) + (PageSize - 1)) / PageSize; in emitIndirectStubsBlock() local 127 unsigned NumStubs = (NumPages * PageSize) / StubSize; in emitIndirectStubsBlock() 133 sys::Memory::allocateMappedMemory(2 * NumPages * PageSize, nullptr, in emitIndirectStubsBlock() 142 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize); in emitIndirectStubsBlock() 144 NumPages * PageSize, in emitIndirectStubsBlock() 145 NumPages * PageSize); in emitIndirectStubsBlock() 150 static_cast<uint64_t>(NumPages * PageSize - 6) << 16; in emitIndirectStubsBlock()
|
/external/llvm/lib/Support/Unix/ |
D | Memory.inc | 91 const size_t NumPages = (NumBytes+PageSize-1)/PageSize; 119 void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages, 131 Result.Size = NumPages*PageSize; 185 size_t NumPages = (NumBytes+PageSize-1)/PageSize; 209 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC, 212 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC, 225 (vm_size_t)(PageSize*NumPages), 0, 233 (vm_size_t)(PageSize*NumPages), 0, 243 result.Size = NumPages*PageSize;
|