Searched defs:Allocator (Results 1 - 25 of 43) sorted by relevance

12

/external/clang/lib/AST/
H A DCommentCommandTraits.cpp18 CommandTraits::CommandTraits(llvm::BumpPtrAllocator &Allocator) : argument
19 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator)
35 char *Name = Allocator.Allocate<char>(CommandName.size());
40 CommandInfo *Info = new (Allocator) CommandInfo();
H A DRawCommentList.cpp144 llvm::BumpPtrAllocator Allocator; local
146 comments::Lexer L(Allocator, Context.getCommentCommandTraits(),
205 llvm::BumpPtrAllocator &Allocator) {
235 Comments.push_back(new (Allocator) RawComment(RC));
259 Comments.push_back(new (Allocator) RawComment(RC));
204 addComment(const RawComment &RC, llvm::BumpPtrAllocator &Allocator) argument
/external/llvm/include/llvm/Support/
H A DRecyclingAllocator.h1 //==- llvm/Support/RecyclingAllocator.h - Recycling Allocator ----*- C++ -*-==//
22 /// RecyclingAllocator - This class wraps an Allocator, adding the
33 /// Allocator - The wrapped allocator.
35 AllocatorType Allocator; member in class:llvm::RecyclingAllocator
38 ~RecyclingAllocator() { Base.clear(Allocator); }
44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
46 T *Allocate() { return Base.Allocate(Allocator); }
52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); }
62 T, Size, Align> &Allocator) {
63 return Allocator
60 operator new(size_t, llvm::RecyclingAllocator<AllocatorType, T, Size, Align> &Allocator) argument
[all...]
H A DRecycler.h1 //==- llvm/Support/Recycler.h - Recycling Allocator --------------*- C++ -*-==//
83 void clear(AllocatorType &Allocator) { argument
86 Allocator.Deallocate(t);
91 SubClass *Allocate(AllocatorType &Allocator) { argument
98 static_cast<SubClass *>(Allocator.Allocate(Size, Align));
102 T *Allocate(AllocatorType &Allocator) { argument
103 return Allocate<T>(Allocator);
107 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) {
H A DAllocator.h1 //===--- Allocator.h - Simple memory allocation abstraction -----*- C++ -*-===//
75 /// Allocator - The underlying allocator that we forward to.
77 MallocAllocator Allocator; member in class:llvm::MallocSlabAllocator
80 MallocSlabAllocator() : Allocator() { }
102 /// Allocator - The underlying allocator we use to get slabs of memory. This
105 SlabAllocator &Allocator; member in class:llvm::BumpPtrAllocator
190 BumpPtrAllocator Allocator; member in class:llvm::SpecificBumpPtrAllocator
194 : Allocator(size, threshold, allocator) {}
204 MemSlab *Slab = Allocator.CurSlab;
206 char *End = Slab == Allocator
226 operator new(size_t Size, llvm::BumpPtrAllocator &Allocator) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/gpu/
H A DPODArena.h49 class Allocator : public RefCounted<Allocator> { class in class:WebCore::PODArena
54 virtual ~Allocator() { }
55 friend class WTF::RefCounted<Allocator>;
60 class FastMallocAllocator : public Allocator {
80 // Creates a new PODArena configured with the given Allocator.
81 static PassRefPtr<PODArena> create(PassRefPtr<Allocator> allocator)
124 explicit PODArena(PassRefPtr<Allocator> allocator)
165 // Allocator.
166 Chunk(Allocator* allocato
[all...]
/external/clang/include/clang/AST/
H A DCommentParser.h21 #include "llvm/Support/Allocator.h"
40 /// Allocator for anything that goes into AST nodes.
41 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::Parser
90 Parser(Lexer &L, Sema &S, llvm::BumpPtrAllocator &Allocator,
H A DCommentCommandTraits.h22 #include "llvm/Support/Allocator.h"
102 CommandTraits(llvm::BumpPtrAllocator &Allocator);
135 /// Allocator for CommandInfo objects.
136 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::CommandTraits
H A DCommentSema.h23 #include "llvm/Support/Allocator.h"
36 /// Allocator for AST nodes.
37 llvm::BumpPtrAllocator &Allocator; member in class:clang::comments::Sema
70 Sema(llvm::BumpPtrAllocator &Allocator, const SourceManager &SourceMgr,
80 T *Mem = Allocator.Allocate<T>(Size);
/external/llvm/include/llvm/CodeGen/
H A DMachineLoopRanges.h35 typedef Map::Allocator Allocator; typedef in class:llvm::MachineLoopRange
49 MachineLoopRange(const MachineLoop*, Allocator&, SlotIndexes&);
88 typedef MachineLoopRange::Allocator MapAllocator;
90 MapAllocator Allocator; member in class:llvm::MachineLoopRanges
H A DLiveInterval.h25 #include "llvm/Support/Allocator.h"
45 typedef BumpPtrAllocator Allocator; typedef in class:llvm::VNInfo
232 VNInfo *getNextValue(SlotIndex def, VNInfo::Allocator &VNInfoAllocator) {
242 VNInfo *createDeadDef(SlotIndex Def, VNInfo::Allocator &VNInfoAllocator);
247 VNInfo::Allocator &VNInfoAllocator) {
282 VNInfo::Allocator &VNInfoAllocator);
H A DMachineFunction.h24 #include "llvm/Support/Allocator.h"
103 BumpPtrAllocator Allocator; member in class:llvm::MachineFunction
220 // This should be just `new (Allocator.Allocate<Ty>()) Ty(*this)', but
222 Ty *Loc = static_cast<Ty*>(Allocator.Allocate(sizeof(Ty),
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DEnvironment.h112 EnvironmentManager(llvm::BumpPtrAllocator& Allocator) : F(Allocator) {} argument
/external/clang/unittests/AST/
H A DCommentLexer.cpp34 Traits(Allocator) {
42 llvm::BumpPtrAllocator Allocator; member in class:clang::comments::__anon4852::CommentLexerTest
66 Lexer L(Allocator, Traits, Begin, Source, Source + strlen(Source));
/external/chromium/base/allocator/
H A Dallocator_shim.cc37 } Allocator; typedef in typeref:enum:__anon1471
44 static Allocator allocator = WINHEAP;
/external/chromium/base/
H A Dstack_container.h135 typedef StackAllocator<ContainedType, stack_capacity> Allocator; typedef in class:StackContainer
137 // Allocator must be constructed before the container!
162 const typename Allocator::Source& stack_data() const {
168 typename Allocator::Source stack_data_;
169 Allocator allocator_;
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator64_test.cc22 SizeClassAllocator64<kAllocatorSpace, kAllocatorSize, 16, SCMap> Allocator; typedef
23 typedef SizeClassAllocatorLocalCache<Allocator::kNumClasses, Allocator>
56 Allocator a;
103 Allocator a;
127 Allocator a;
185 typedef Allocator PrimaryAllocator;
188 SecondaryAllocator> Allocator; typedef
191 Allocator a;
237 Allocator
[all...]
H A Dsanitizer_allocator64_testlib.cc29 SecondaryAllocator> Allocator; typedef in namespace:__anon4915
32 static Allocator allocator;
/external/clang/include/clang/Basic/
H A DPartialDiagnostic.h126 /// \brief Allocator used to allocate storage for this diagnostic.
127 StorageAllocator *Allocator; member in class:clang::PartialDiagnostic
134 if (Allocator)
135 DiagStorage = Allocator->Allocate();
137 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)));
157 if (Allocator)
158 Allocator->Deallocate(DiagStorage);
159 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0)))
189 : DiagID(0), DiagStorage(0), Allocator(0) { }
191 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) argument
211 PartialDiagnostic(const Diagnostic &Other, StorageAllocator &Allocator) argument
[all...]
/external/llvm/include/llvm/ADT/
H A DImmutableList.h17 #include "llvm/Support/Allocator.h"
146 uintptr_t Allocator; member in class:llvm::ImmutableListFactory
149 return Allocator & 0x1 ? false : true;
153 return *reinterpret_cast<BumpPtrAllocator*>(Allocator & ~0x1);
158 : Allocator(reinterpret_cast<uintptr_t>(new BumpPtrAllocator())) {}
161 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {}
H A DScopedHashTable.h35 #include "llvm/Support/Allocator.h"
64 AllocatorTy &Allocator) {
65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>();
74 void Destroy(AllocatorTy &Allocator) { argument
77 Allocator.Deallocate(this);
156 AllocatorTy Allocator; member in class:llvm::ScopedHashTable
163 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {}
172 AllocatorRefTy getAllocator() { return Allocator; }
173 AllocatorCRefTy getAllocator() const { return Allocator; }
213 Allocator);
61 Create(ScopedHashTableVal *nextInScope, ScopedHashTableVal *nextForKey, const K &key, const V &val, AllocatorTy &Allocator) argument
[all...]
/external/llvm/include/llvm/Transforms/Utils/
H A DSSAUpdaterImpl.h20 #include "llvm/Support/Allocator.h"
67 BumpPtrAllocator Allocator; member in class:llvm::SSAUpdaterImpl
104 BBInfo *Info = new (Allocator) BBInfo(BB, 0);
121 (Allocator.Allocate(Info->NumPreds * sizeof(BBInfo*),
136 BBInfo *PredInfo = new (Allocator) BBInfo(Pred, PredVal);
151 BBInfo *PseudoEntry = new (Allocator) BBInfo(0, 0);
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfAccelTable.h250 // Allocator for HashData and HashDataContents.
251 BumpPtrAllocator Allocator; member in class:llvm::DwarfAccelTable
/external/llvm/lib/CodeGen/
H A DLiveIntervalUnion.h58 typedef LiveSegments::Allocator Allocator; typedef in class:llvm::LiveIntervalUnion
67 explicit LiveIntervalUnion(Allocator &a) : Tag(0), Segments(a) {}
195 void init(LiveIntervalUnion::Allocator&, unsigned Size);
H A DSplitKit.h262 /// Allocator for the interval map. This will eventually be shared with
264 RegAssignMap::Allocator Allocator; member in class:llvm::SplitEditor

Completed in 1322 milliseconds

12