| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | AllocatorTest.cpp | 165 const size_t SlabSize = 4096; in TEST() local 168 BumpPtrAllocatorImpl<MallocAllocator, SlabSize, SlabSize, GrowthDelay> Alloc; in TEST() 173 Alloc.Allocate(SlabSize, 1); in TEST() 177 Alloc.Allocate(SlabSize, 1); in TEST() 179 Alloc.Allocate(SlabSize, 1); in TEST() 186 Alloc.Allocate(SlabSize, 1); in TEST() 192 const size_t SlabSize = 16; in TEST() local 195 BumpPtrAllocatorImpl<MallocAllocator, SlabSize, SlabSize, GrowthDelay> Alloc; in TEST() 203 Alloc.Allocate(SlabSize, 1); in TEST() 207 Alloc.Allocate(SlabSize, 1); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/test/Modules/Inputs/PR28794/ |
| H A D | LibAHeader.h | 6 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> &);
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Allocator.h | 61 template <typename AllocatorT = MallocAllocator, size_t SlabSize = 4096, 62 size_t SizeThreshold = SlabSize, size_t GrowthDelay = 128> 64 : public AllocatorBase<BumpPtrAllocatorImpl<AllocatorT, SlabSize, 70 static_assert(SizeThreshold <= SlabSize, 134 End = CurPtr + SlabSize; in Reset() 330 return SlabSize * in computeSlabSize() 437 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold, 441 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold, in new() argument 447 template <typename AllocatorT, size_t SlabSize, size_t SizeThreshold, 450 llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, in delete() argument
|
| /llvm-project-15.0.7/clang/test/Modules/Inputs/PR28794/Subdir/ |
| H A D | LibBHeader.h | 6 template <typename T, size_t SlabSize, size_t SizeThreshold> 7 void *operator new(size_t, BumpPtrAllocatorImpl<T, SlabSize, SizeThreshold> &) { in new() argument
|
| /llvm-project-15.0.7/llvm/tools/llvm-jitlink/ |
| H A D | llvm-jitlink.cpp | 461 Create(uint64_t SlabSize) { in Create() argument 464 new JITLinkSlabAllocator(SlabSize, Err)); in Create() 634 JITLinkSlabAllocator(uint64_t SlabSize, Error &Err) { in JITLinkSlabAllocator() argument 660 SlabSize = (SlabSize + PageSize - 1) & ~(PageSize - 1); in JITLinkSlabAllocator() 668 sys::Memory::allocateMappedMemory(SlabSize, nullptr, ReadWrite, EC); in JITLinkSlabAllocator() 708 uint64_t SlabSize = 0; in getSlabAllocSize() local 709 if (SizeString.getAsInteger(10, SlabSize)) in getSlabAllocSize() 713 return SlabSize * Units; in getSlabAllocSize() 718 auto SlabSize = ExitOnErr(getSlabAllocSize(SlabAllocateSizeString)); in createMemoryManager() local 719 return ExitOnErr(JITLinkSlabAllocator::Create(SlabSize)); in createMemoryManager()
|
| /llvm-project-15.0.7/llvm/tools/llvm-rtdyld/ |
| H A D | llvm-rtdyld.cpp | 262 SlabSize = Size; in preallocateSlab() 268 if (CurrentSlabOffset + Size > SlabSize) in allocateFromSlab() 285 uintptr_t SlabSize = 0; member in TrivialMemoryManager
|