Home
last modified time | relevance | path

Searched refs:SlabSize (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/llvm/unittests/Support/
DAllocatorTest.cpp139 const size_t SlabSize = 4096; in TEST() local
142 BumpPtrAllocatorImpl<MallocAllocator, SlabSize, SlabSize, GrowthDelay> Alloc; in TEST()
147 Alloc.Allocate(SlabSize, 1); in TEST()
148 EXPECT_EQ(SlabSize, Alloc.getTotalMemory()); in TEST()
151 Alloc.Allocate(SlabSize, 1); in TEST()
152 EXPECT_EQ(SlabSize * 3, Alloc.getTotalMemory()); in TEST()
153 Alloc.Allocate(SlabSize, 1); in TEST()
154 EXPECT_EQ(SlabSize * 3, Alloc.getTotalMemory()); in TEST()
160 Alloc.Allocate(SlabSize, 1); in TEST()
161 EXPECT_EQ(SlabSize * 7, Alloc.getTotalMemory()); in TEST()
[all …]
/external/llvm-project/clang/test/Modules/Inputs/PR28794/
DLibAHeader.h6 template <typename = int, size_t SlabSize = 4096, size_t = SlabSize>
9 template <typename T, size_t SlabSize, size_t SizeThreshold>
10 void * operator new(size_t, BumpPtrAllocatorImpl<T, SlabSize, SizeThreshold> &);
/external/llvm/include/llvm/Support/
DAllocator.h133 template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096,
134 size_t SizeThreshold = SlabSize>
137 BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>> {
139 static_assert(SizeThreshold <= SlabSize,
200 End = CurPtr + SlabSize; in Reset()
316 return SlabSize * ((size_t)1 << std::min<size_t>(30, SlabIdx / 128)); in computeSlabSize()
415 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold>
417 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, in new() argument
432 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold>
434 void *, llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold> &) { in delete() argument
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DAllocator.h136 template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096,
137 size_t SizeThreshold = SlabSize>
140 BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>> {
142 static_assert(SizeThreshold <= SlabSize,
203 End = CurPtr + SlabSize; in Reset()
319 return SlabSize * ((size_t)1 << std::min<size_t>(30, SlabIdx / 128)); in computeSlabSize()
418 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold>
420 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, in new() argument
435 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold>
437 void *, llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold> &) { in delete() argument
/external/llvm-project/llvm/include/llvm/Support/
DAllocator.h65 template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096,
66 size_t SizeThreshold = SlabSize, size_t GrowthDelay = 128>
68 : public AllocatorBase<BumpPtrAllocatorImpl<AllocatorT, SlabSize,
71 static_assert(SizeThreshold <= SlabSize,
135 End = CurPtr + SlabSize; in Reset()
326 return SlabSize * in computeSlabSize()
432 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold,
436 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, in new() argument
442 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold,
445 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, in delete() argument
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DAllocator.h139 template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096,
140 size_t SizeThreshold = SlabSize>
143 BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold>> {
145 static_assert(SizeThreshold <= SlabSize,
206 End = CurPtr + SlabSize; in Reset()
397 return SlabSize * ((size_t)1 << std::min<size_t>(30, SlabIdx / 128)); in computeSlabSize()
501 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold>
503 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, in new() argument
518 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold>
520 void *, llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold> &) { in delete() argument
/external/llvm-project/clang/test/Modules/Inputs/PR28794/Subdir/
DLibBHeader.h6 template <typename T, size_t SlabSize, size_t SizeThreshold>
7 void *operator new(size_t, BumpPtrAllocatorImpl<T, SlabSize, SizeThreshold> &) { in new() argument
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DJITLinkMemoryManager.cpp50 size_t SlabSize = SlabEnd - (char *)SlabStart; in allocate() local
51 assert((SlabSize % sys::Process::getPageSizeEstimate()) == 0 && in allocate()
53 sys::MemoryBlock Slab(SlabStart, SlabSize); in allocate()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DJITLinkMemoryManager.cpp50 size_t SlabSize = SlabEnd - (char *)SlabStart; in allocate() local
51 assert((SlabSize % sys::Process::getPageSizeEstimate()) == 0 && in allocate()
53 sys::MemoryBlock Slab(SlabStart, SlabSize); in allocate()
/external/llvm-project/llvm/tools/llvm-jitlink/
Dllvm-jitlink.cpp323 Create(uint64_t SlabSize) { in Create() argument
326 new JITLinkSlabAllocator(SlabSize, Err)); in Create()
426 JITLinkSlabAllocator(uint64_t SlabSize, Error &Err) { in JITLinkSlabAllocator() argument
438 SlabSize = (SlabSize + PageSize - 1) & ~(PageSize - 1); in JITLinkSlabAllocator()
446 sys::Memory::allocateMappedMemory(SlabSize, nullptr, ReadWrite, EC); in JITLinkSlabAllocator()
480 uint64_t SlabSize = 0; in getSlabAllocSize() local
481 if (SizeString.getAsInteger(10, SlabSize)) in getSlabAllocSize()
485 return SlabSize * Units; in getSlabAllocSize()
490 auto SlabSize = ExitOnErr(getSlabAllocSize(SlabAllocateSizeString)); in createMemoryManager() local
491 return ExitOnErr(JITLinkSlabAllocator::Create(SlabSize)); in createMemoryManager()
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp190 SlabSize = Size; in preallocateSlab()
195 if (CurrentSlabOffset + Size > SlabSize) in allocateFromSlab()
212 uintptr_t SlabSize = 0; member in TrivialMemoryManager
/external/llvm-project/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp257 SlabSize = Size; in preallocateSlab()
263 if (CurrentSlabOffset + Size > SlabSize) in allocateFromSlab()
280 uintptr_t SlabSize = 0; member in TrivialMemoryManager