Home
last modified time | relevance | path

Searched refs:allocatedSize (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/Support/
H A DMemoryTest.cpp137 EXPECT_LE(16U, M1.allocatedSize()); in TEST_P()
139 EXPECT_LE(64U, M2.allocatedSize()); in TEST_P()
141 EXPECT_LE(32U, M3.allocatedSize()); in TEST_P()
152 EXPECT_LE(16U, M4.allocatedSize()); in TEST_P()
294 EXPECT_LE(16U, M4.allocatedSize()); in TEST_P()
315 EXPECT_LE(16U, M1.allocatedSize()); in TEST_P()
317 EXPECT_LE(64U, M2.allocatedSize()); in TEST_P()
319 EXPECT_LE(32U, M3.allocatedSize()); in TEST_P()
342 EXPECT_LE(16U, M1.allocatedSize()); in TEST_P()
344 EXPECT_LE(64U, M2.allocatedSize()); in TEST_P()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp67 if (FreeMB.Free.allocatedSize() >= RequiredSize) { in allocateSection()
69 uintptr_t EndOfBlock = Addr + FreeMB.Free.allocatedSize(); in allocateSection()
127 uintptr_t EndOfBlock = Addr + MB.allocatedSize(); in allocateSection()
188 size_t TrimmedSize = M.allocatedSize(); in trimBlockToPageSize()
196 assert((Trimmed.allocatedSize() % PageSize) == 0); in trimBlockToPageSize()
198 Trimmed.allocatedSize() <= M.allocatedSize()); in trimBlockToPageSize()
222 return FreeMB.Free.allocatedSize() == 0; in applyMemoryGroupPermissions()
231 Block.allocatedSize()); in invalidateInstructionCache()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMemory.h34 MemoryBlock(void *addr, size_t allocatedSize) in MemoryBlock() argument
35 : Address(addr), AllocatedSize(allocatedSize) {} in MemoryBlock()
39 size_t allocatedSize() const { return AllocatedSize; } in allocatedSize() function
157 size_t allocatedSize() const { return M.allocatedSize(); } in allocatedSize() function
/llvm-project-15.0.7/llvm/lib/Support/
H A DMemory.cpp45 << (void *)((char *)MB.base() + MB.allocatedSize()) << " ] (" in operator <<()
46 << MB.allocatedSize() << " bytes)"; in operator <<()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp290 sys::Memory::InvalidateInstructionCache(MB.base(), MB.allocatedSize()); in applyProtections()
365 memset(Slab.base(), 0, Slab.allocatedSize()); in allocate()
380 NextStandardSegAddr + StandardSegsMem.allocatedSize()) in allocate()
386 NextFinalizeSegAddr + FinalizeSegsMem.allocatedSize()) in allocate()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp49 Reservations[MB.base()].Size = MB.allocatedSize(); in reserve()
53 ExecutorAddrRange(ExecutorAddr::fromPtr(MB.base()), MB.allocatedSize())); in reserve()
/llvm-project-15.0.7/llvm/tools/llvm-jitlink/
H A Dllvm-jitlink.cpp524 MB.allocatedSize()); in allocate()
547 if (SegsSizes->total() > SlabRemaining.allocatedSize()) { in allocate()
552 formatv("{0:x}", SlabRemaining.allocatedSize()) + " bytes", in allocate()
560 SlabRemaining.allocatedSize() - SegsSizes->total()); in allocate()
574 NextStandardSegAddr + StandardSegs.allocatedSize()) in allocate()
580 NextFinalizeSegAddr + FinalizeSegs.allocatedSize()) in allocate()
/llvm-project-15.0.7/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp723 AlreadyAllocated[LoadAddr] = (*Tmp)->MB.allocatedSize(); in remapSectionsAndSymbols()
747 if (NextSectionAddr + CurEntry->MB.allocatedSize() + TargetSectionSep <= in remapSectionsAndSymbols()
754 AlreadyAllocated[NextSectionAddr] = CurEntry->MB.allocatedSize(); in remapSectionsAndSymbols()
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DMemory.inc124 NearBlock->allocatedSize()
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DMemory.inc109 NearBlock->allocatedSize() : 0;