Home
last modified time | relevance | path

Searched refs:getAllocator (Results 1 – 25 of 72) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp50 auto *Leaf = new (A.getAllocator()) syntax::Leaf( in createLeaf()
76 return new (A.getAllocator()) syntax::TranslationUnit; in allocateTree()
80 return new (A.getAllocator()) syntax::ParenExpression; in allocateTree()
82 return new (A.getAllocator()) syntax::ThisExpression; in allocateTree()
110 return new (A.getAllocator()) syntax::UnqualifiedId; in allocateTree()
112 return new (A.getAllocator()) syntax::IdExpression; in allocateTree()
114 return new (A.getAllocator()) syntax::CallExpression; in allocateTree()
124 return new (A.getAllocator()) syntax::CaseStatement; in allocateTree()
128 return new (A.getAllocator()) syntax::IfStatement; in allocateTree()
130 return new (A.getAllocator()) syntax::ForStatement; in allocateTree()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DOutputSections.h158 ListDebugStrPatch(&GlobalData.getAllocator()), in SectionDescriptor()
159 ListDebugLineStrPatch(&GlobalData.getAllocator()), in SectionDescriptor()
160 ListDebugRangePatch(&GlobalData.getAllocator()), in SectionDescriptor()
161 ListDebugLocPatch(&GlobalData.getAllocator()), in SectionDescriptor()
162 ListDebugDieRefPatch(&GlobalData.getAllocator()), in SectionDescriptor()
163 ListDebugULEB128DieRefPatch(&GlobalData.getAllocator()), in SectionDescriptor()
164 ListDebugOffsetPatch(&GlobalData.getAllocator()), in SectionDescriptor()
165 ListDebugDieTypeRefPatch(&GlobalData.getAllocator()), in SectionDescriptor()
167 ListDebugTypeStrPatch(&GlobalData.getAllocator()), in SectionDescriptor()
168 ListDebugTypeLineStrPatch(&GlobalData.getAllocator()), in SectionDescriptor()
[all …]
H A DStringEntryToDwarfStringPoolEntryMap.h34 GlobalData.getAllocator() in add()
H A DDWARFLinkerGlobalData.h91 llvm::parallel::PerThreadBumpPtrAllocator &getAllocator() { in getAllocator() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocatorBase.h115 Alloc &getAllocator() { return *this; } in getAllocator() function
116 const Alloc &getAllocator() const { return *this; } in getAllocator() function
124 Alloc &getAllocator() { return A; } in getAllocator() function
125 const Alloc &getAllocator() const { return A; } in getAllocator() function
H A DAllocator.h87 : AllocTy(std::move(Old.getAllocator())), CurPtr(Old.CurPtr), in BumpPtrAllocatorImpl()
112 AllocTy::operator=(std::move(RHS.getAllocator()));
180 this->getAllocator().Allocate(PaddedSize, alignof(std::max_align_t)); in Allocate()
339 void *NewSlab = this->getAllocator().Allocate(AllocatedSlabSize, in StartNewSlab()
356 this->getAllocator().Deallocate(*I, AllocatedSlabSize, in DeallocateSlabs()
366 this->getAllocator().Deallocate(Ptr, Size, alignof(std::max_align_t)); in DeallocateCustomSizedSlabs()
H A DStringSaver.h27 BumpPtrAllocator &getAllocator() const { return Alloc; } in getAllocator() function
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringMap.h136 : StringMapImpl(std::move(RHS)), AllocTy(std::move(RHS.getAllocator())) {} in StringMap()
140 AllocTy(RHS.getAllocator()) { in StringMap()
160 static_cast<MapEntryTy *>(Bucket)->getKey(), getAllocator(), in StringMap()
175 std::swap(getAllocator(), RHS.getAllocator());
187 static_cast<MapEntryTy *>(Bucket)->Destroy(getAllocator()); in ~StringMap()
194 using AllocTy::getAllocator;
351 MapEntryTy::create(Key, getAllocator(), std::forward<ArgsTy>(Args)...); in try_emplace()
369 static_cast<MapEntryTy *>(Bucket)->Destroy(getAllocator()); in clear()
385 V.Destroy(getAllocator()); in erase()
H A DImmutableList.h161 BumpPtrAllocator& getAllocator() const { in getAllocator() function
173 if (ownsAllocator()) delete &getAllocator(); in ~ImmutableListFactory()
188 BumpPtrAllocator& A = getAllocator(); in concat()
H A DScopedHashTable.h178 using AllocTy::getAllocator;
219 getAllocator()); in insertIntoScope()
256 ThisEntry->Destroy(HT.getAllocator()); in ~ScopedHashTableScope()
H A DImmutableSet.h376 BumpPtrAllocator& getAllocator() const {
392 if (ownsAllocator()) delete &getAllocator();
456 BumpPtrAllocator& A = getAllocator();
1016 BumpPtrAllocator& getAllocator() { return F.getAllocator(); }
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCodeComplete.cpp1806 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypeSpecifierResults()
1934 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypedefResult()
3117 CodeCompletionBuilder Opt(Result.getAllocator(), in AddFunctionParameterChunks()
3215 CodeCompletionBuilder Opt(Result.getAllocator(), in AddTemplateParameterChunks()
3856 CodeCompletionBuilder Opt(Result.getAllocator(), in AddOverloadParameterChunks()
3897 CodeCompletionBuilder Opt(Result.getAllocator(), in AddOverloadParameterChunks()
4509 *this, CodeCompleter->getAllocator(), in CodeCompleteDeclSpec()
4842 *this, CodeCompleter->getAllocator(), in CodeCompleteExpression()
7985 *this, CodeCompleter->getAllocator(), in CodeCompleteObjCMessageReceiver()
8198 *this, CodeCompleter->getAllocator(), in CodeCompleteObjCClassMessage()
[all …]
H A DCodeCompleteConsumer.cpp437 void *Mem = getAllocator().Allocate( in TakeString()
677 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults()
692 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults()
764 CurrentArg, SemaRef, getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h671 CodeCompletionAllocator &getAllocator() const { in getAllocator() function
714 CodeCompletionAllocator &getAllocator() const { return Allocator; } in getAllocator() function
1236 virtual CodeCompletionAllocator &getAllocator() = 0;
1287 CodeCompletionAllocator &getAllocator() override { in getAllocator() function
1288 return CCTUInfo.getAllocator(); in getAllocator()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DGSIStreamBuilder.cpp367 addGlobalSymbol(SymbolSerializer::writeOneSymbol(Copy, Msf.getAllocator(), in serializeAndAddGlobal()
484 Layout, Buffer, getGlobalsStreamIndex(), Msf.getAllocator()); in commit()
486 Layout, Buffer, getPublicsStreamIndex(), Msf.getAllocator()); in commit()
488 Layout, Buffer, getRecordStreamIndex(), Msf.getAllocator()); in commit()
H A DInfoStreamBuilder.cpp61 Layout, Buffer, StreamPDB, Msf.getAllocator()); in commit()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/
H A DBumpVector.h64 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator() function
242 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DIdentifierTable.h657 llvm::BumpPtrAllocator& getAllocator() { in getAllocator() function
658 return HashTable.getAllocator(); in getAllocator()
677 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in get()
708 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in getOwn()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExplodedGraph.cpp236 V = new (G.getAllocator()) ExplodedNodeVector(Ctx, 4); in addNode()
410 V = getAllocator().Allocate<NodeTy>(); in getNode()
434 NodeTy *V = getAllocator().Allocate<NodeTy>(); in createUncachedNode()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DAppendingTypeTableBuilder.h52 BumpPtrAllocator &getAllocator() { return RecordStorage; } in getAllocator() function
H A DMergingTypeTableBuilder.h61 BumpPtrAllocator &getAllocator() { return RecordStorage; } in getAllocator() function
H A DGlobalTypeTableBuilder.h65 BumpPtrAllocator &getAllocator() { return RecordStorage; } in getAllocator() function
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DRawCommentList.cpp210 comments::Lexer L(Context.getAllocator(), Context.getDiagnostics(), in parse()
214 comments::Sema S(Context.getAllocator(), Context.getSourceManager(), in parse()
219 comments::Parser P(L, S, Context.getAllocator(), Context.getSourceManager(), in parse()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMSFBuilder.h119 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator() function
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DYAMLParser.cpp2020 BumpPtrAllocator &Node::getAllocator() { in getAllocator() function in Node
2267 return Key = new (getAllocator()) NullNode(Doc); in getKey()
2276 return Key = new (getAllocator()) NullNode(Doc); in getKey()
2291 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2295 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2305 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2310 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2318 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2342 CurrentEntry = new (getAllocator()) KeyValueNode(Doc); in increment()

123