/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 20 BumpPtrAllocator Alloc; in TEST() local 21 int *a = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 22 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); in TEST() 23 int *c = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 32 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 37 BumpPtrAllocator Alloc(4096, 4096); in TEST() local 38 Alloc.Allocate(3000, 0); in TEST() 39 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST() 40 Alloc.Allocate(3000, 0); in TEST() 41 EXPECT_EQ(2U, Alloc.GetNumSlabs()); in TEST() [all …]
|
/external/clang/test/CXX/temp/temp.decls/temp.alias/ |
D | p2.cpp | 18 template<class T> struct Alloc {}; struct 19 template<class T> using Vec = vector<T, Alloc<T>>; 27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} in process() 34 void g(TT<int, Alloc<int>>); 43 using VTest = vector<int, Alloc<int>>;
|
/external/clang/test/CodeCompletion/ |
D | templates.cpp | 8 template<typename T, typename Alloc = std::allocator<T> > 9 class vector : Alloc { 14 template<typename Alloc> class vector<bool, Alloc>;
|
/external/clang/test/CodeGenCXX/ |
D | mangle-alias-template.cpp | 4 template<typename T> using Alloc = alloc<T>; typedef 5 template<typename T, typename A = Alloc<T>> struct vector {}; 31 Alloc<int> AC; in z() 35 h<Alloc>(AC); in z()
|
D | new.cpp | 152 struct Alloc{ struct 156 ~Alloc(); argument 164 delete[] new Alloc[10][20]; in f()
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ProgramStateTrait.h | 65 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 66 return new typename data_type::Factory(Alloc); 107 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 108 return new typename data_type::Factory(Alloc); 145 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 146 return new typename data_type::Factory(Alloc);
|
D | BasicValueFactory.h | 81 BasicValueFactory(ASTContext &ctx, llvm::BumpPtrAllocator& Alloc) in BasicValueFactory() argument 82 : Ctx(ctx), BPAlloc(Alloc), PersistentSVals(0), PersistentSValPairs(0), in BasicValueFactory() 83 SValListFactory(Alloc) {} in BasicValueFactory()
|
D | BlockCounter.h | 46 Factory(llvm::BumpPtrAllocator& Alloc);
|
/external/clang/include/clang/Analysis/Support/ |
D | BumpVector.h | 33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; variable 37 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} in BumpVectorContext() 42 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} in BumpVectorContext() 45 if (Alloc.getInt()) in ~BumpVectorContext() 46 delete Alloc.getPointer(); in ~BumpVectorContext() 49 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator()
|
/external/clang/test/SemaCXX/ |
D | PR9902.cpp | 15 template <class Alloc> 18 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
|
D | PR9908.cpp | 9 template <class Alloc> 12 typedef Alloc allocator_type;
|
/external/skia/include/core/ |
D | SkDescriptor.h | 23 static SkDescriptor* Alloc(size_t length) in Alloc() function 92 SkDescriptor* desc = SkDescriptor::Alloc(fLength); in copy() 160 fDesc = SkDescriptor::Alloc(size); in SkAutoDescriptor()
|
/external/skia/src/core/ |
D | SkRegionPriv.h | 25 static RunHead* Alloc(int count) in Alloc() function 65 writable = Alloc(fRunCount); in ensureWritable()
|
D | SkPictureFlat.cpp | 18 SkFlatData* SkFlatData::Alloc(SkChunkAlloc* heap, int32_t size, int index) { in Alloc() function in SkFlatData 32 SkFlatBitmap* result = (SkFlatBitmap*) INHERITED::Alloc(heap, size, index); in Flatten() 39 SkFlatMatrix* result = (SkFlatMatrix*) INHERITED::Alloc(heap, size, index); in Flatten() 100 SkFlatPaint* result = (SkFlatPaint*) INHERITED::Alloc(heap, size, index); in Flatten() 218 SkFlatRegion* result = (SkFlatRegion*) INHERITED::Alloc(heap, size, index); in Flatten()
|
/external/zlib/src/contrib/dotzlib/DotZLib/ |
D | CodecBase.cs | 54 _hInput = GCHandle.Alloc(_inBuffer, GCHandleType.Pinned); in CodecBase() 55 _hOutput = GCHandle.Alloc(_outBuffer, GCHandleType.Pinned); in CodecBase()
|
D | ChecksumImpl.cs | 137 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned); in Update() 188 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned); in Update()
|
D | GZipStream.cs | 162 GCHandle h = GCHandle.Alloc(buffer, GCHandleType.Pinned); in Read() 207 GCHandle h = GCHandle.Alloc(buffer, GCHandleType.Pinned); in Write()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | BlockCounter.cpp | 66 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { in Factory() argument 67 F = new CountMap::Factory(Alloc); in Factory()
|
/external/zlib/src/contrib/ada/ |
D | zlib-thin.adb | 102 Alloc : in alloc_func; 106 Strm.zalloc := Alloc;
|
/external/llvm/lib/CodeGen/ |
D | LiveRangeCalc.h | 40 VNInfo::Allocator *Alloc; variable 127 LiveRangeCalc() : MRI(0), Indexes(0), DomTree(0), Alloc(0) {} in LiveRangeCalc()
|
D | LiveRangeCalc.cpp | 28 Alloc = VNIA; in reset() 57 LI->createDeadDef(Idx, *Alloc); in createDeadDefs() 322 assert(Alloc && "Need VNInfo allocator to create PHI-defs"); in updateSSA() 325 VNInfo *VNI = I->LI->getNextValue(Start, *Alloc); in updateSSA()
|
/external/llvm/include/llvm/ADT/ |
D | ImmutableIntervalMap.h | 97 ImutIntervalAVLFactory(BumpPtrAllocator &Alloc) in ImutIntervalAVLFactory() argument 98 : ImutAVLFactory<ImutInfo>(Alloc) {} in ImutIntervalAVLFactory() 214 Factory(BumpPtrAllocator& Alloc) : F(Alloc) {} in Factory() argument
|
D | ImmutableList.h | 160 ImmutableListFactory(BumpPtrAllocator& Alloc) in ImmutableListFactory() argument 161 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {} in ImmutableListFactory()
|
/external/tinyxml2/ |
D | tinyxml2.cpp | 490 returnNode = new (commentPool.Alloc()) XMLDeclaration( this ); in Identify() 495 returnNode = new (commentPool.Alloc()) XMLComment( this ); in Identify() 500 XMLText* text = new (textPool.Alloc()) XMLText( this ); in Identify() 507 returnNode = new (commentPool.Alloc()) XMLUnknown( this ); in Identify() 512 returnNode = new (elementPool.Alloc()) XMLElement( this ); in Identify() 517 returnNode = new (textPool.Alloc()) XMLText( this ); in Identify() 1246 attrib = new (document->attributePool.Alloc() ) XMLAttribute(); in FindOrCreateAttribute() 1294 XMLAttribute* attrib = new (document->attributePool.Alloc() ) XMLAttribute(); in ParseAttributes() 1465 XMLElement* ele = new (elementPool.Alloc()) XMLElement( this ); in NewElement() 1474 XMLComment* comment = new (commentPool.Alloc()) XMLComment( this ); in NewComment() [all …]
|
/external/llvm/include/llvm/Support/ |
D | YAMLParser.h | 139 , BumpPtrAllocator &Alloc 141 return Alloc.Allocate(Size, Alignment); in throw() 144 void operator delete(void *Ptr, BumpPtrAllocator &Alloc, size_t) throw() { in delete() argument 145 Alloc.Deallocate(Ptr); in delete()
|