Searched refs:Allocate (Results 1 - 25 of 127) sorted by relevance

123456

/freebsd-11.0-release/contrib/llvm/lib/Support/
H A DStringSaver.cpp15 char *P = Alloc.Allocate<char>(S.size() + 1);
/freebsd-11.0-release/contrib/llvm/include/llvm/Support/
H A DRecyclingAllocator.h40 /// Allocate - Return a pointer to storage for an object of type
44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } function in class:llvm::RecyclingAllocator
46 T *Allocate() { return Base.Allocate(Allocator); } function in class:llvm::RecyclingAllocator
67 return Allocator.Allocate();
H A DRecycler.h82 SubClass *Allocate(AllocatorType &Allocator) { function in class:llvm::Recycler
88 : static_cast<SubClass *>(Allocator.Allocate(Size, Align));
92 T *Allocate(AllocatorType &Allocator) { function in class:llvm::Recycler
93 return Allocate<T>(Allocator);
H A DAllocator.h13 /// Allocate method accepting a size and alignment, and a Deallocate accepting
15 /// Allocate and Deallocate for setting size and alignment based on the final
37 /// Allocate() methods of LLVM-style allocators.
44 /// \brief Allocate \a Size bytes of \a Alignment aligned memory. This method
46 void *Allocate(size_t Size, size_t Alignment) { function in class:llvm::AllocatorBase
49 &AllocatorBase::Allocate) !=
51 &DerivedT::Allocate),
53 "core Allocate(size_t, size_t) overload!");
55 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment);
75 /// \brief Allocate spac
76 template <typename T> T *Allocate(size_t Num = 1) { function in class:llvm::AllocatorBase
93 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, function in class:llvm::MallocAllocator
209 Allocate(size_t Size, size_t Alignment) { function in class:llvm::BumpPtrAllocatorImpl
408 T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); } function in class:llvm::SpecificBumpPtrAllocator
[all...]
H A DArrayRecycler.h118 /// Allocate an array of at least the requested capacity.
129 return static_cast<T*>(Allocator.Allocate(sizeof(T)*Cap.getSize(), Align));
/freebsd-11.0-release/contrib/compiler-rt/lib/lsan/
H A Dlsan_allocator.h23 void *Allocate(const StackTrace &stack, uptr size, uptr alignment,
H A Dlsan_interceptors.cc54 return Allocate(stack, size, 1, kAlwaysClearMemory);
78 return Allocate(stack, size, 1, true);
90 return Allocate(stack, size, alignment, kAlwaysClearMemory);
96 return Allocate(stack, size, alignment, kAlwaysClearMemory);
102 *memptr = Allocate(stack, size, alignment, kAlwaysClearMemory);
112 return Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory);
143 return Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory);
151 return Allocate(stack, size, 1, kAlwaysClearMemory);
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/AST/
H A DStmtOpenMP.cpp63 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + sizeof(Stmt *));
78 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + sizeof(Stmt *));
90 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() +
118 C.Allocate(Size + sizeof(OMPClause *) * NumClauses +
131 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() +
167 C.Allocate(Size + sizeof(OMPClause *) * NumClauses +
180 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() +
215 C.Allocate(Size + sizeof(OMPClause *) * NumClauses +
226 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + sizeof(Stmt *));
241 C.Allocate(Siz
[all...]
H A DOpenMPClause.cpp42 // Allocate space for private variables and initializer expressions.
43 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size()));
53 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N));
74 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size()));
85 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N));
121 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size()));
133 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N));
142 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size()));
150 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N));
183 // Allocate spac
[all...]
H A DDeclGroup.cpp23 void* Mem = C.Allocate(Size, llvm::AlignOf<DeclGroup>::Alignment);
H A DStmtObjC.cpp53 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>());
63 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>());
H A DStmtCXX.cpp31 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>());
40 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>());
H A DExprCXX.cpp302 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedLookupExpr>());
317 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedLookupExpr>());
361 C.Allocate(sizeof(DeclAccessPair) * NumResults,
400 C.Allocate(sizeof(DeclAccessPair) * NumResults,
458 void *Mem = C.Allocate(Size);
471 void *Mem = C.Allocate(Size);
592 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize));
604 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize));
617 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize));
629 void *Buffer = C.Allocate(totalSizeToAllo
[all...]
H A DExprObjC.cpp42 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(Elements.size()));
49 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements));
93 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>(
101 void *Mem = C.Allocate(totalSizeToAlloc<KeyValuePair, ExpansionData>(
279 return (ObjCMessageExpr *)C.Allocate(
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator.cc74 return internal_allocator()->Allocate(&internal_allocator_cache, size, 8,
77 return internal_allocator()->Allocate(cache, size, 8, false);
114 void *LowLevelAllocator::Allocate(uptr size) { function in class:__sanitizer::LowLevelAllocator
H A Dsanitizer_flag_parser.cc53 char *s2 = (char*)Alloc.Allocate(len + 1);
168 flags_ = (Flag *)Alloc.Allocate(sizeof(Flag) * kMaxFlags);
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DBasicValueFactory.cpp81 P = (FoldNodeTy*) BPAlloc.Allocate<FoldNodeTy>();
118 D = (CompoundValData*) BPAlloc.Allocate<CompoundValData>();
137 D = (LazyCompoundValData*) BPAlloc.Allocate<LazyCompoundValData>();
257 P = (FoldNodeTy*) BPAlloc.Allocate<FoldNodeTy>();
282 P = (FoldNodeTy*) BPAlloc.Allocate<FoldNodeTy>();
H A DSymbolManager.cpp157 SD = (SymExpr*) BPAlloc.Allocate<SymbolRegionValue>();
176 SD = (SymExpr*) BPAlloc.Allocate<SymbolConjured>();
194 SD = (SymExpr*) BPAlloc.Allocate<SymbolDerived>();
210 SD = (SymExpr*) BPAlloc.Allocate<SymbolExtent>();
228 SD = (SymExpr*) BPAlloc.Allocate<SymbolMetadata>();
245 data = (SymbolCast*) BPAlloc.Allocate<SymbolCast>();
263 data = (SymIntExpr*) BPAlloc.Allocate<SymIntExpr>();
281 data = (IntSymExpr*) BPAlloc.Allocate<IntSymExpr>();
299 data = (SymSymExpr*) BPAlloc.Allocate<SymSymExpr>();
H A DMemRegion.cpp49 R = (RegionTy*) A.Allocate<RegionTy>();
67 R = (RegionTy*) A.Allocate<RegionTy>();
88 R = (RegionTy*) A.Allocate<RegionTy>();
107 R = (RegionTy*) A.Allocate<RegionTy>();
126 R = (RegionTy*) A.Allocate<RegionTy>();
649 region = (REG*) A.Allocate<REG>();
659 region = (REG*) A.Allocate<REG>();
674 R = A.Allocate<StackLocalsSpaceRegion>();
687 R = A.Allocate<StackArgumentsSpaceRegion>();
709 R = A.Allocate<StaticGlobalSpaceRegio
[all...]
/freebsd-11.0-release/contrib/llvm/include/llvm/IR/
H A DPredIteratorCache.h53 Entry = Memory.Allocate<BasicBlock *>(PredCache.size());
/freebsd-11.0-release/contrib/llvm/lib/MC/
H A DMCContext.cpp295 return Entry = new (MachOAllocator.Allocate()) MCSectionMachO(
323 return new (ELFAllocator.Allocate())
368 MCSectionELF *Result = new (ELFAllocator.Allocate())
376 MCSectionELF *Result = new (ELFAllocator.Allocate())
405 MCSectionCOFF *Result = new (COFFAllocator.Allocate()) MCSectionCOFF(
443 return *new (MCSubtargetAllocator.Allocate()) MCSubtargetInfo(STI);
/freebsd-11.0-release/contrib/compiler-rt/lib/asan/
H A Dasan_allocator.cc162 void *Allocate(uptr size) { function in struct:__asan::QuarantineCallback
163 return get_allocator().Allocate(cache_, size, 1, false);
323 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, function in struct:__asan::Allocator
368 allocator.Allocate(cache, needed_size, 8, false, check_rss_limit);
373 allocator.Allocate(cache, needed_size, 8, false, check_rss_limit);
539 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true);
557 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false);
705 return instance.Allocate(size, alignment, stack, alloc_type, true);
718 return instance.Allocate(size, 8, stack, FROM_MALLOC, true);
727 return instance.Allocate(siz
[all...]
/freebsd-11.0-release/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp225 // Allocate common symbols
516 // Allocate memory for the section
586 uintptr_t Allocate; local
609 Allocate = DataSize + PaddingSize + StubBufSize;
610 if (!Allocate)
611 Allocate = 1;
612 Addr = IsCode ? MemMgr.allocateCodeSection(Allocate, Alignment, SectionID,
614 : MemMgr.allocateDataSection(Allocate, Alignment, SectionID,
636 << " Allocate: " << Allocate << "\ local
646 << " Allocate: " << Allocate << "\\n"); local
[all...]
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Lex/
H A DPreprocessingRecord.h356 /// \brief Allocate space for a new set of loaded preprocessed entities.
369 /// \brief Allocate memory in the preprocessing record.
370 void *Allocate(unsigned Size, unsigned Align = 8) { function in class:clang::PreprocessingRecord
371 return BumpAlloc.Allocate(Size, Align);
528 return PR.Allocate(bytes, alignment);
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyUtil.h48 return Allocator->Allocate(Sz, llvm::AlignOf<AlignmentType>::Alignment);
51 template <typename T> T *allocateT() { return Allocator->Allocate<T>(); }
54 return Allocator->Allocate<T>(NumElems);

Completed in 172 milliseconds

123456