Home
last modified time | relevance | path

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

1234567

/external/llvm-project/clang/lib/Tooling/Syntax/
DSynthesis.cpp46 auto *Leaf = new (A.getAllocator()) syntax::Leaf(Tokens.begin()); in createLeaf()
69 return new (A.getAllocator()) syntax::TranslationUnit; in allocateTree()
71 return new (A.getAllocator()) syntax::UnknownExpression; in allocateTree()
73 return new (A.getAllocator()) syntax::ParenExpression; in allocateTree()
75 return new (A.getAllocator()) syntax::ThisExpression; in allocateTree()
77 return new (A.getAllocator()) syntax::IntegerLiteralExpression; in allocateTree()
79 return new (A.getAllocator()) syntax::CharacterLiteralExpression; in allocateTree()
81 return new (A.getAllocator()) syntax::FloatingLiteralExpression; in allocateTree()
83 return new (A.getAllocator()) syntax::StringLiteralExpression; in allocateTree()
85 return new (A.getAllocator()) syntax::BoolLiteralExpression; in allocateTree()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DPoolAlloc.h275 pool_allocator(const pool_allocator<Other>& p) : allocator(&p.getAllocator()) { } in pool_allocator()
282 return getAllocator().allocate(n); in allocate()
285 return getAllocator().allocate(n); in allocate()
290 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
293 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
301 bool operator==(const pool_allocator& rhs) const { return &getAllocator() == &rhs.getAllocator(); }
302 bool operator!=(const pool_allocator& rhs) const { return &getAllocator() != &rhs.getAllocator(); }
308 TPoolAllocator& getAllocator() const { return *allocator; } in getAllocator() function
/external/deqp-deps/glslang/glslang/Include/
DPoolAlloc.h285 pool_allocator(const pool_allocator<Other>& p) : allocator(p.getAllocator()) { } in pool_allocator()
288 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); } in allocate()
290 return reinterpret_cast<pointer>(getAllocator().allocate(n * sizeof(T))); } in allocate()
296 return reinterpret_cast<pointer>(getAllocator().allocate(n)); } in _Charalloc()
301 …bool operator==(const pool_allocator& rhs) const { return &getAllocator() == &rhs.getAllocator(); }
302 …bool operator!=(const pool_allocator& rhs) const { return &getAllocator() != &rhs.getAllocator(); }
307 TPoolAllocator& getAllocator() const { return allocator; } in getAllocator() function
/external/angle/src/compiler/translator/
DPoolAlloc.h75 void *allocate(size_type n) { return getAllocator().allocate(n); } in allocate()
76 void *allocate(size_type n, const void *) { return getAllocator().allocate(n); } in allocate()
81 return static_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
85 return static_cast<pointer>(getAllocator().allocate(n * sizeof(T))); in allocate()
99 angle::PoolAllocator &getAllocator() const { return *GetGlobalPoolAllocator(); } in getAllocator() function
/external/clang/lib/Sema/
DSemaCodeComplete.cpp261 CodeCompletionAllocator &getAllocator() const { return Allocator; } in getAllocator() function in __anonaebf90eb0111::ResultBuilder
1309 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypeSpecifierResults()
1425 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypedefResult()
1519 CodeCompletionAllocator &Allocator = Results.getAllocator(); in addThisCompletion()
1535 CodeCompletionAllocator &Allocator = Results.getAllocator(); in AddOrdinaryNameResults()
2113 Result.getAllocator())); in AddResultTypeChunk()
2327 CodeCompletionBuilder Opt(Result.getAllocator(), in AddFunctionParameterChunks()
2351 Result.getAllocator().CopyString(PlaceholderStr)); in AddFunctionParameterChunks()
2422 CodeCompletionBuilder Opt(Result.getAllocator(), in AddTemplateParameterChunks()
2441 Result.getAllocator().CopyString(PlaceholderStr)); in AddTemplateParameterChunks()
[all …]
DCodeCompleteConsumer.cpp329 void *Mem = getAllocator().Allocate( in TakeString()
448 getAllocator(), in ProcessCodeCompleteResults()
467 getAllocator(), in ProcessCodeCompleteResults()
518 getAllocator(), CCTUInfo, in ProcessOverloadCandidates()
/external/llvm-project/clang/lib/Sema/
DSemaCodeComplete.cpp293 CodeCompletionAllocator &getAllocator() const { return Allocator; } in getAllocator() function in __anon2f121f790111::ResultBuilder
1683 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypeSpecifierResults()
1748 CodeCompletionAllocator &Allocator = Results.getAllocator(); in AddStorageSpecifiers()
1810 CodeCompletionBuilder Builder(Results.getAllocator(), in AddTypedefResult()
1922 CodeCompletionAllocator &Allocator = Results.getAllocator(); in addThisCompletion()
2004 CodeCompletionAllocator &Allocator = Results.getAllocator(); in AddOrdinaryNameResults()
2657 GetCompletionTypeString(T, Context, Policy, Result.getAllocator())); in AddResultTypeChunk()
2961 CodeCompletionBuilder Opt(Result.getAllocator(), in AddFunctionParameterChunks()
2988 Result.getAllocator().CopyString(PlaceholderStr)); in AddFunctionParameterChunks()
3059 CodeCompletionBuilder Opt(Result.getAllocator(), in AddTemplateParameterChunks()
[all …]
/external/llvm-project/llvm/unittests/DebugInfo/DWARF/
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()
88 Die->addValue(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()
[all …]
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp45 static ScudoAllocator &getAllocator();
175 getAllocator().DestroyCache(&Cache); in teardownThread()
201 getAllocator().InitCache(&Cache); in initThread()
218 getAllocator().Deallocate(Cache_, Ptr); in Recycle()
231 return getAllocator().Allocate(Cache_, Size, 1, false); in Allocate()
236 getAllocator().Deallocate(Cache_, Ptr); in Deallocate()
526 static ScudoAllocator &getAllocator() { in getAllocator() function
607 getAllocator().GetStats(stats); in __sanitizer_get_current_allocated_bytes()
613 getAllocator().GetStats(stats); in __sanitizer_get_heap_size()
/external/llvm-project/llvm/unittests/ADT/
DStringSetTest.cpp37 StringMapEntry<StringRef>::Create("A", Set.getAllocator()); in TEST_F()
42 Element->Destroy(Set.getAllocator()); in TEST_F()
/external/llvm/include/llvm/ADT/
DImmutableList.h151 BumpPtrAllocator& getAllocator() const { in getAllocator() function
163 if (ownsAllocator()) delete &getAllocator(); in ~ImmutableListFactory()
177 BumpPtrAllocator& A = getAllocator(); in concat()
DScopedHashTable.h171 AllocatorTy &getAllocator() { return Allocator; } in getAllocator() function
172 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator() function
250 ThisEntry->Destroy(HT.getAllocator()); in ~ScopedHashTableScope()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DImmutableList.h160 BumpPtrAllocator& getAllocator() const { in getAllocator() function
172 if (ownsAllocator()) delete &getAllocator(); in ~ImmutableListFactory()
187 BumpPtrAllocator& A = getAllocator(); in concat()
DScopedHashTable.h178 AllocatorTy &getAllocator() { return Allocator; } in getAllocator() function
179 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator() function
257 ThisEntry->Destroy(HT.getAllocator()); in ~ScopedHashTableScope()
/external/llvm-project/llvm/include/llvm/ADT/
DImmutableList.h160 BumpPtrAllocator& getAllocator() const { in getAllocator() function
172 if (ownsAllocator()) delete &getAllocator(); in ~ImmutableListFactory()
187 BumpPtrAllocator& A = getAllocator(); in concat()
DScopedHashTable.h178 AllocatorTy &getAllocator() { return Allocator; } in getAllocator() function
179 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator() function
257 ThisEntry->Destroy(HT.getAllocator()); in ~ScopedHashTableScope()
/external/clang/include/clang/Sema/
DCodeCompleteConsumer.h527 CodeCompletionAllocator &getAllocator() const { in getAllocator() function
579 CodeCompletionAllocator &getAllocator() const { return Allocator; }
939 virtual CodeCompletionAllocator &getAllocator() = 0;
969 CodeCompletionAllocator &getAllocator() override {
970 return CCTUInfo.getAllocator();
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/PDB/Native/
DGSIStreamBuilder.cpp65 addSymbol(SymbolSerializer::writeOneSymbol(Copy, Msf.getAllocator(), in addSymbol()
365 Layout, Buffer, getGlobalsStreamIndex(), Msf.getAllocator()); in commit()
367 Layout, Buffer, getPublicsStreamIndex(), Msf.getAllocator()); in commit()
369 Layout, Buffer, getRecordStreamIdx(), Msf.getAllocator()); in commit()
/external/llvm-project/clang/include/clang/Sema/
DCodeCompleteConsumer.h658 CodeCompletionAllocator &getAllocator() const { in getAllocator() function
701 CodeCompletionAllocator &getAllocator() const { return Allocator; } in getAllocator() function
1147 virtual CodeCompletionAllocator &getAllocator() = 0;
1197 CodeCompletionAllocator &getAllocator() override { in getAllocator() function
1198 return CCTUInfo.getAllocator(); in getAllocator()
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesBufferTests.cpp654 …m_colorBufferAlloc = bindBuffer(vk, getDevice(), getAllocator(), *m_colorBuffer, MemoryRequirem… in SparseBufferTestInstance()
698 …getDeviceInterface(), getDevice(), getAllocator(), m_universalQueue.queueFamilyIndex, descriptorSe… in draw()
860 ….build(instance, getPhysicalDevice(secondDeviceID), vk, getDevice(), getAllocator(), referenceBuff… in iterate()
869 ….build(instance, getPhysicalDevice(secondDeviceID), vk, getDevice(), getAllocator(), referenceBuff… in iterate()
888 …r.build(instance, getPhysicalDevice(secondDeviceID), vk, getDevice(), getAllocator(), referenceBuf… in iterate()
924 …const UniquePtr<Allocation> stagingBufferAlloc (bindBuffer(vk, getDevice(), getAllocator(), *stagi… in iterate()
994 …m_vertexBufferAlloc = bindBuffer(vk, getDevice(), getAllocator(), *m_vertexBuffer, MemoryRequireme… in iterate()
1157 …uild(instance, getPhysicalDevice(memoryDeviceIndex), vk, getDevice(), getAllocator(), referenceBuf… in createResources()
1167 …m_stagingBufferAlloc = bindBuffer(vk, getDevice(), getAllocator(), *m_stagingBuffer, MemoryRequire… in createResources()
1345 …m_vertexBufferAlloc = bindBuffer(vk, getDevice(), getAllocator(), *m_vertexBuffer, MemoryRequireme… in initializeBuffers()
[all …]
/external/clang/include/clang/Basic/
DIdentifierTable.h470 llvm::BumpPtrAllocator& getAllocator() { in getAllocator() function
471 return HashTable.getAllocator(); in getAllocator()
490 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in get()
521 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in getOwn()
/external/clang/lib/AST/
DRawCommentList.cpp208 comments::Lexer L(Context.getAllocator(), Context.getDiagnostics(), in parse()
212 comments::Sema S(Context.getAllocator(), Context.getSourceManager(), in parse()
217 comments::Parser P(L, S, Context.getAllocator(), Context.getSourceManager(), in parse()
/external/llvm-project/clang/include/clang/Basic/
DIdentifierTable.h522 llvm::BumpPtrAllocator& getAllocator() { in getAllocator() function
523 return HashTable.getAllocator(); in getAllocator()
542 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in get()
573 void *Mem = getAllocator().Allocate<IdentifierInfo>(); in getOwn()
/external/clang/lib/StaticAnalyzer/Core/
DExplodedGraph.cpp253 V = G.getAllocator().Allocate<ExplodedNodeVector>(); in addNode()
319 V = (NodeTy*) getAllocator().Allocate<NodeTy>(); in getNode()
342 NodeTy *V = (NodeTy *) getAllocator().Allocate<NodeTy>(); in createUncachedNode()
/external/llvm-project/llvm/lib/DebugInfo/PDB/Native/
DGSIStreamBuilder.cpp365 addGlobalSymbol(SymbolSerializer::writeOneSymbol(Copy, Msf.getAllocator(), in serializeAndAddGlobal()
481 Layout, Buffer, getGlobalsStreamIndex(), Msf.getAllocator()); in commit()
483 Layout, Buffer, getPublicsStreamIndex(), Msf.getAllocator()); in commit()
485 Layout, Buffer, getRecordStreamIndex(), Msf.getAllocator()); in commit()

1234567