Home
last modified time | relevance | path

Searched refs:Allocate (Results 1 – 25 of 254) sorted by relevance

1234567891011

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocatorBase.h44 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 DRecyclingAllocator.h43 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 DThreadSafeAllocator.h38 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 DRecycler.h83 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 DAllocator.h148 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 DPerThreadBumpPtrAllocator.h38 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 DExprCXX.cpp258 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 DStmtCXX.cpp29 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 DOpenMPClause.cpp1059 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 DStmtObjC.cpp51 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in Create()
60 void *Mem = Context.Allocate(Size, alignof(ObjCAtTryStmt)); in CreateEmpty()
H A DStmt.cpp386 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 DExprObjC.cpp43 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 DExpr.cpp1633 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 DASTConcept.cpp71 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 Dlsan_allocator.cpp90 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 Dsanitizer_allocator_combined.h44 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 Dsanitizer_allocator_dlsym.h34 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 Dsanitizer_allocator.cpp54 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 DMemory.h61 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 Dmemprof_allocator.cpp342 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 DEnvironment.cpp17 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 Dasan_allocator.cpp264 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 DMCContext.cpp193 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 DRuntimeDyld.cpp829 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 DFileManager.cpp109 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()

1234567891011