Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp22 char *data = ctx.getAllocator().Allocate<char>(str.size() + 1); in copyStringWithNull()
33 return *new (ctx.getAllocator().Allocate<Name>()) in create()
236 return new (ctx.getAllocator().Allocate<RewriteStmt>()) in create()
245 return new (ctx.getAllocator().Allocate<ReturnStmt>()) in create()
255 return new (ctx.getAllocator().Allocate<AttributeExpr>()) in create()
281 return new (ctx.getAllocator().Allocate<DeclRefExpr>()) in create()
353 return new (ctx.getAllocator().Allocate<TypeExpr>()) in create()
362 docComment = comment.copy(ctx.getAllocator()); in setDocComment()
455 codeBlock = codeBlock->copy(ctx.getAllocator()); in createImpl()
502 return new (ctx.getAllocator().Allocate<PatternDecl>()) in create()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAllocatorBase.h109 Alloc &getAllocator() { return *this; } in getAllocator() function
110 const Alloc &getAllocator() const { return *this; } in getAllocator() function
118 Alloc &getAllocator() { return A; } in getAllocator() function
119 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()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DStringMap.h135 : StringMapImpl(std::move(RHS)), AllocTy(std::move(RHS.getAllocator())) {} in StringMap()
139 AllocTy(RHS.getAllocator()) { in StringMap()
159 static_cast<MapEntryTy *>(Bucket)->getKey(), getAllocator(), in StringMap()
174 std::swap(getAllocator(), RHS.getAllocator());
186 static_cast<MapEntryTy *>(Bucket)->Destroy(getAllocator()); in ~StringMap()
193 using AllocTy::getAllocator;
339 MapEntryTy::Create(Key, getAllocator(), std::forward<ArgsTy>(Args)...); in try_emplace()
357 static_cast<MapEntryTy *>(Bucket)->Destroy(getAllocator()); in clear()
373 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(); }
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDwarfGenerator.cpp56 Die->addValue(DG.getAllocator(), static_cast<dwarf::Attribute>(A), Form, in addAttribute()
62 Die->addValue(DG.getAllocator(), static_cast<dwarf::Attribute>(A), Form, in addAttribute()
71 Die->addValue(DG.getAllocator(), static_cast<dwarf::Attribute>(A), Form, in addAttribute()
72 new (DG.getAllocator()) in addAttribute()
73 DIEInlineString(String, DG.getAllocator())); in addAttribute()
78 DG.getAllocator(), static_cast<dwarf::Attribute>(A), Form, in addAttribute()
101 Die->addValue(DG.getAllocator(), static_cast<dwarf::Attribute>(A), Form, in addAttribute()
108 DIEBlock *Block = new (DG.getAllocator()) DIEBlock; in addAttribute()
111 DG.getAllocator(), (dwarf::Attribute)0, dwarf::DW_FORM_data1, in addAttribute()
116 Die->addValue(DG.getAllocator(), static_cast<dwarf::Attribute>(A), Form, in addAttribute()
[all …]
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCodeComplete.cpp1717 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypeSpecifierResults()
1844 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypedefResult()
3020 CodeCompletionBuilder Opt(Result.getAllocator(), in AddFunctionParameterChunks()
3118 CodeCompletionBuilder Opt(Result.getAllocator(), in AddTemplateParameterChunks()
3744 CodeCompletionBuilder Opt(Result.getAllocator(), in AddOverloadParameterChunks()
3785 CodeCompletionBuilder Opt(Result.getAllocator(), in AddOverloadParameterChunks()
4393 *this, CodeCompleter->getAllocator(), in CodeCompleteDeclSpec()
4725 *this, CodeCompleter->getAllocator(), in CodeCompleteExpression()
7842 *this, CodeCompleter->getAllocator(), in CodeCompleteObjCMessageReceiver()
8054 *this, CodeCompleter->getAllocator(), in CodeCompleteObjCClassMessage()
[all …]
H A DCodeCompleteConsumer.cpp431 void *Mem = getAllocator().Allocate( in TakeString()
670 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults()
685 SemaRef, Context, getAllocator(), CCTUInfo, in ProcessCodeCompleteResults()
757 CurrentArg, SemaRef, getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DStringSetTest.cpp38 StringMapEntry<StringRef>::Create("A", Set.getAllocator()); in TEST_F()
43 Element->Destroy(Set.getAllocator()); in TEST_F()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h664 CodeCompletionAllocator &getAllocator() const { in getAllocator() function
707 CodeCompletionAllocator &getAllocator() const { return Allocator; } in getAllocator() function
1222 virtual CodeCompletionAllocator &getAllocator() = 0;
1273 CodeCompletionAllocator &getAllocator() override { in getAllocator() function
1274 return CCTUInfo.getAllocator(); in getAllocator()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DIdentifierTable.h590 llvm::BumpPtrAllocator& getAllocator() { in getAllocator() function
591 return HashTable.getAllocator(); in getAllocator()
610 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in get()
641 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in getOwn()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DGSIStreamBuilder.cpp366 addGlobalSymbol(SymbolSerializer::writeOneSymbol(Copy, Msf.getAllocator(), in serializeAndAddGlobal()
482 Layout, Buffer, getGlobalsStreamIndex(), Msf.getAllocator()); in commit()
484 Layout, Buffer, getPublicsStreamIndex(), Msf.getAllocator()); in commit()
486 Layout, Buffer, getRecordStreamIndex(), Msf.getAllocator()); in commit()
H A DInfoStreamBuilder.cpp59 Layout, Buffer, StreamPDB, Msf.getAllocator()); in commit()
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DContext.h32 llvm::BumpPtrAllocator &getAllocator() { return allocator; } in getAllocator() function
/llvm-project-15.0.7/clang/include/clang/Analysis/Support/
H A DBumpVector.h55 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator() function
233 T *NewElts = C.getAllocator().template Allocate<T>(NewCapacity); in grow()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DExplodedGraph.cpp236 V = G.getAllocator().Allocate<ExplodedNodeVector>(); in addNode()
411 V = (NodeTy*) getAllocator().Allocate<NodeTy>(); in getNode()
435 NodeTy *V = (NodeTy *) getAllocator().Allocate<NodeTy>(); in createUncachedNode()
/llvm-project-15.0.7/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
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/clang/unittests/Sema/
H A DCodeCompleteTest.cpp55 CodeCompletionAllocator &getAllocator() override { in getAllocator() function in __anond94f9a6f0111::VisitedContextFinder
56 return CCTUInfo.getAllocator(); in getAllocator()
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/MSF/
H A DMSFBuilder.h119 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator() function
/llvm-project-15.0.7/llvm/lib/Support/
H A DYAMLParser.cpp2003 BumpPtrAllocator &Node::getAllocator() { in getAllocator() function in Node
2203 return Key = new (getAllocator()) NullNode(Doc); in getKey()
2212 return Key = new (getAllocator()) NullNode(Doc); in getKey()
2227 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2231 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2241 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2246 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2254 return Value = new (getAllocator()) NullNode(Doc); in getValue()
2278 CurrentEntry = new (getAllocator()) KeyValueNode(Doc); in increment()

1234