| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | AllocatorBase.h | 44 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 47 &AllocatorBase::Allocate) != in Allocate() 49 &DerivedT::Allocate), in Allocate() 53 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate() 75 template <typename T> T *Allocate(size_t Num = 1) { 76 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T))); 91 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 96 using AllocatorBase<MallocAllocator>::Allocate;
|
| H A D | RecyclingAllocator.h | 43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() function 45 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() function 66 return Allocator.Allocate(); in new()
|
| H A D | ThreadSafeAllocator.h | 38 auto Allocate(size_t N) { in Allocate() function 39 return applyLocked([N](AllocatorType &Alloc) { return Alloc.Allocate(N); }); in Allocate() 42 auto Allocate(size_t Size, size_t Align) { in Allocate() function 44 return Alloc.Allocate(Size, Align); in Allocate()
|
| H A D | Recycler.h | 83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() function 89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 93 T *Allocate(AllocatorType &Allocator) { in Allocate() function 94 return Allocate<T>(Allocator); in Allocate()
|
| H A D | Allocator.h | 148 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, Align Alignment) { in Allocate() function 180 this->getAllocator().Allocate(PaddedSize, alignof(std::max_align_t)); in Allocate() 207 Allocate(size_t Size, size_t Alignment) { in Allocate() function 209 return Allocate(Size, Align(Alignment)); in Allocate() 213 using AllocatorBase<BumpPtrAllocatorImpl>::Allocate; 339 void *NewSlab = this->getAllocator().Allocate(AllocatedSlabSize, in StartNewSlab() 432 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); } 443 return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size), in new()
|
| H A D | PerThreadBumpPtrAllocator.h | 38 using AllocatorBase<PerThreadAllocator<AllocatorTy>>::Allocate; 43 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 45 return Allocators[getThreadIndex()].Allocate(Size, Alignment); in Allocate()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 258 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in Create() 272 Ctx.Allocate(totalSizeToAlloc<Stmt *, SourceRange>( in CreateEmpty() 491 void *Mem = Context.Allocate(Size); in Create() 504 void *Mem = Context.Allocate(Size); in CreateEmpty() 965 auto *Mem = C.Allocate(Size, alignof(CXXDefaultArgExpr)); in CreateEmpty() 975 auto *Mem = C.Allocate(Size, alignof(CXXDefaultArgExpr)); in Create() 1019 auto *Mem = C.Allocate(Size, alignof(CXXDefaultInitExpr)); in CreateEmpty() 1030 auto *Mem = Ctx.Allocate(Size, alignof(CXXDefaultInitExpr)); in Create() 1257 void *Mem = Context.Allocate(Size); in Create() 1267 void *Mem = C.Allocate(Size); in CreateDeserialized() [all …]
|
| H A D | StmtCXX.cpp | 29 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); in Create() 36 void *Mem = C.Allocate(Size, alignof(CXXTryStmt)); in Create() 92 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); in Create() 101 void *Mem = C.Allocate(Size, alignof(CoroutineBodyStmt)); in Create() 119 SubStmts[CoroutineBodyStmt::Allocate] = Args.Allocate; in CoroutineBodyStmt()
|
| H A D | OpenMPClause.cpp | 1059 void *Mem = C.Allocate( in Create() 1164 void *Mem = C.Allocate( in Create() 1186 void *Mem = C.Allocate( in CreateEmpty() 1220 void *Mem = C.Allocate( in Create() 1238 void *Mem = C.Allocate( in CreateEmpty() 1270 void *Mem = C.Allocate( in Create() 1290 void *Mem = C.Allocate( in CreateEmpty() 1332 void *Mem = C.Allocate( in Create() 1351 void *Mem = C.Allocate( in CreateEmpty() 1381 void *Mem = C.Allocate( in Create() [all …]
|
| H A D | StmtObjC.cpp | 51 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in Create() 60 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in CreateEmpty()
|
| H A D | Stmt.cpp | 386 C.Allocate(totalSizeToAlloc<Stmt *, FPOptionsOverride>( in Create() 394 void *Mem = C.Allocate( in CreateEmpty() 436 void *Mem = C.Allocate(totalSizeToAlloc<const Attr *>(NumAttrs), in CreateEmpty() 964 void *Mem = Ctx.Allocate( in Create() 974 void *Mem = Ctx.Allocate( in CreateEmpty() 1085 void *Mem = Ctx.Allocate( in Create() 1093 void *Mem = Ctx.Allocate( in CreateEmpty() 1223 void *Mem = Ctx.Allocate( in Create() 1232 void *Mem = Ctx.Allocate( in CreateEmpty() 1380 void *Mem = Context.Allocate(Size); in Create() [all …]
|
| H A D | ExprObjC.cpp | 43 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(Elements.size())); in Create() 49 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); in CreateEmpty() 82 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>( in Create() 90 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>( in CreateEmpty() 253 return (ObjCMessageExpr *)C.Allocate( in alloc()
|
| H A D | Expr.cpp | 1633 void *Mem = C.Allocate( in Create() 1717 void *Mem = C.Allocate(Size, alignof(MemberExpr)); in Create() 4417 void *Mem = Context.Allocate( in Create() 4431 void *Mem = Context.Allocate( in Create() 4446 void *Mem = Context.Allocate( in Create() 4460 void *Mem = Context.Allocate( in Create() 4471 void *Mem = Context.Allocate( in CreateEmpty() 5082 void *Mem = Context.Allocate( in Create() 5092 void *Mem = Context.Allocate( in CreateEmpty() 5212 void *Mem = Context.Allocate( in Create() [all …]
|
| H A D | ASTConcept.cpp | 71 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Create() 79 void *Mem = C.Allocate(size, alignof(ASTConstraintSatisfaction)); in Rebuild()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cpp | 90 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() function 101 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate() 122 return Allocate(stack, size, 1, true); in Calloc() 186 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign() 202 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc() 212 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign() 216 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); in lsan_malloc() 244 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc() 257 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory)); in lsan_pvalloc()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_combined.h | 44 void *Allocate(AllocatorCache *cache, uptr size, uptr alignment) { in Allocate() function 69 res = cache->Allocate(&primary_, primary_.ClassID(size)); in Allocate() 71 res = secondary_.Allocate(&stats_, original_size, alignment); in Allocate() 100 return Allocate(cache, new_size, alignment); in Reallocate() 108 void *new_p = Allocate(cache, new_size, alignment); in Reallocate()
|
| H A D | sanitizer_allocator_dlsym.h | 34 static void *Allocate(uptr size_in_bytes) { in Allocate() function 58 return Allocate(new_size); in Realloc() 66 void *new_ptr = Allocate(new_size); in Realloc()
|
| H A D | sanitizer_allocator.cpp | 54 return internal_allocator()->Allocate(&internal_allocator_cache, size, in RawInternalAlloc() 57 return internal_allocator()->Allocate(cache, size, alignment); in RawInternalAlloc() 149 void *LowLevelAllocator::Allocate(uptr size) { in Allocate() function in __sanitizer::LowLevelAllocator
|
| /freebsd-14.2/contrib/llvm-project/lld/include/lld/Common/ |
| H A D | Memory.h | 61 return new (getSpecificAllocSingleton<T>().Allocate()) in make() 83 return new (getSpecificAllocSingletonThreadLocal<T>().Allocate()) in makeThreadLocal() 88 return new (getSpecificAllocSingletonThreadLocal<T>().Allocate(n)) T[n]; in makeThreadLocalN()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.cpp | 342 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate() function 385 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 389 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 494 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC); in Reallocate() 510 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC); in Calloc() 602 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_malloc() 622 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_realloc() 636 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC)); in memprof_valloc() 649 return SetErrnoOnNull(instance.Allocate(size, PageSize, stack, FROM_MALLOC)); in memprof_pvalloc() 660 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, alloc_type)); in memprof_memalign() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Environment.cpp | 17 Allocator.Allocate(sizeof(char) * size, alignof(char))); in make_entry() 30 Allocator.Allocate(sizeof(char *) * (Env.size() + 1), alignof(char *))); in Envp()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_allocator.cpp | 264 void *Allocate(uptr size) const { in Allocate() function 265 void *res = get_allocator().Allocate(cache_, size, 1); in Allocate() 528 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate() function 582 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 586 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 758 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate() 779 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc() 1048 instance.Allocate(size, PageSize, stack, FROM_MALLOC, true)); in asan_pvalloc() 1060 instance.Allocate(size, alignment, stack, alloc_type, true)); in asan_memalign() 1071 instance.Allocate(size, alignment, stack, FROM_MALLOC, true)); in asan_aligned_alloc() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCContext.cpp | 193 return new (MCInstAllocator.Allocate()) MCInst; in createMCInst() 461 R.first->second = new (MachOAllocator.Allocate()) in getMachOSection() 491 auto *Ret = new (ELFAllocator.Allocate()) in createELFSectionImpl() 660 MCSectionGOFF *GOFFSection = new (GOFFAllocator.Allocate()) in getGOFFSection() 691 MCSectionCOFF *Result = new (COFFAllocator.Allocate()) MCSectionCOFF( in getCOFFSection() 761 MCSectionWasm *Result = new (WasmAllocator.Allocate()) in getWasmSection() 820 Result = new (XCOFFAllocator.Allocate()) MCSectionXCOFF( in getXCOFFSection() 824 Result = new (XCOFFAllocator.Allocate()) in getXCOFFSection() 851 MCSectionSPIRV *Result = new (SPIRVAllocator.Allocate()) in getSPIRVSection() 874 new (DXCAllocator.Allocate()) MCSectionDXContainer(Name, K, nullptr); in getDXContainerSection() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyld.cpp | 829 uintptr_t Allocate; in emitSection() local 858 Allocate = DataSize + PaddingSize + StubBufSize; in emitSection() 859 if (!Allocate) in emitSection() 860 Allocate = 1; in emitSection() 862 auto TLSSection = MemMgr.allocateTLSSection(Allocate, Alignment.value(), in emitSection() 867 Addr = MemMgr.allocateCodeSection(Allocate, Alignment.value(), SectionID, in emitSection() 870 Addr = MemMgr.allocateDataSection(Allocate, Alignment.value(), SectionID, in emitSection() 898 << " Allocate: " << Allocate << "\n"); in emitSection() 903 Allocate = 0; in emitSection() 909 << " Allocate: " << Allocate << "\n"); in emitSection() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | FileManager.cpp | 109 auto *UDE = new (DirsAlloc.Allocate()) DirectoryEntry(); in addAncestorsAsVirtualDirs() 181 UDE = new (DirsAlloc.Allocate()) DirectoryEntry(); in getDirectoryRef() 270 UFE = new (FilesAlloc.Allocate()) FileEntry(); in getFileRef() 450 RealFE = new (FilesAlloc.Allocate()) FileEntry(); in getVirtualFileRef() 459 UFE = new (FilesAlloc.Allocate()) FileEntry(); in getVirtualFileRef() 490 FileEntry *BFE = new (FilesAlloc.Allocate()) FileEntry(); in getBypassFile()
|