| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | Synthesis.cpp | 50 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 D | Nodes.cpp | 22 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 D | AllocatorBase.h | 109 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 D | Allocator.h | 87 : 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 D | StringMap.h | 135 : 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 D | ImmutableList.h | 161 BumpPtrAllocator& getAllocator() const { in getAllocator() function 173 if (ownsAllocator()) delete &getAllocator(); in ~ImmutableListFactory() 188 BumpPtrAllocator& A = getAllocator(); in concat()
|
| H A D | ScopedHashTable.h | 178 using AllocTy::getAllocator; 219 getAllocator()); in insertIntoScope() 256 ThisEntry->Destroy(HT.getAllocator()); in ~ScopedHashTableScope()
|
| H A D | ImmutableSet.h | 376 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 D | DwarfGenerator.cpp | 56 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 D | SemaCodeComplete.cpp | 1717 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 D | CodeCompleteConsumer.cpp | 431 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 D | StringSetTest.cpp | 38 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 D | CodeCompleteConsumer.h | 664 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 D | IdentifierTable.h | 590 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 D | GSIStreamBuilder.cpp | 366 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 D | InfoStreamBuilder.cpp | 59 Layout, Buffer, StreamPDB, Msf.getAllocator()); in commit()
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/ |
| H A D | Context.h | 32 llvm::BumpPtrAllocator &getAllocator() { return allocator; } in getAllocator() function
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/Support/ |
| H A D | BumpVector.h | 55 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 D | ExplodedGraph.cpp | 236 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 D | AppendingTypeTableBuilder.h | 52 BumpPtrAllocator &getAllocator() { return RecordStorage; } in getAllocator() function
|
| H A D | MergingTypeTableBuilder.h | 61 BumpPtrAllocator &getAllocator() { return RecordStorage; } in getAllocator() function
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 210 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 D | CodeCompleteTest.cpp | 55 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 D | MSFBuilder.h | 119 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator() function
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | YAMLParser.cpp | 2003 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()
|