Home
last modified time | relevance | path

Searched refs:Alloc (Results 1 – 25 of 61) sorted by relevance

123

/external/llvm/unittests/Support/
DAllocatorTest.cpp20 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/
Dp2.cpp18 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/
Dtemplates.cpp8 template<typename T, typename Alloc = std::allocator<T> >
9 class vector : Alloc {
14 template<typename Alloc> class vector<bool, Alloc>;
/external/clang/test/CodeGenCXX/
Dmangle-alias-template.cpp4 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()
Dnew.cpp152 struct Alloc{ struct
156 ~Alloc(); argument
164 delete[] new Alloc[10][20]; in f()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DProgramStateTrait.h65 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);
DBasicValueFactory.h81 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()
DBlockCounter.h46 Factory(llvm::BumpPtrAllocator& Alloc);
/external/clang/include/clang/Analysis/Support/
DBumpVector.h33 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/
DPR9902.cpp15 template <class Alloc>
18 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
DPR9908.cpp9 template <class Alloc>
12 typedef Alloc allocator_type;
/external/skia/include/core/
DSkDescriptor.h23 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/
DSkRegionPriv.h25 static RunHead* Alloc(int count) in Alloc() function
65 writable = Alloc(fRunCount); in ensureWritable()
DSkPictureFlat.cpp18 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/
DCodecBase.cs54 _hInput = GCHandle.Alloc(_inBuffer, GCHandleType.Pinned); in CodecBase()
55 _hOutput = GCHandle.Alloc(_outBuffer, GCHandleType.Pinned); in CodecBase()
DChecksumImpl.cs137 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned); in Update()
188 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned); in Update()
DGZipStream.cs162 GCHandle h = GCHandle.Alloc(buffer, GCHandleType.Pinned); in Read()
207 GCHandle h = GCHandle.Alloc(buffer, GCHandleType.Pinned); in Write()
/external/clang/lib/StaticAnalyzer/Core/
DBlockCounter.cpp66 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { in Factory() argument
67 F = new CountMap::Factory(Alloc); in Factory()
/external/zlib/src/contrib/ada/
Dzlib-thin.adb102 Alloc : in alloc_func;
106 Strm.zalloc := Alloc;
/external/llvm/lib/CodeGen/
DLiveRangeCalc.h40 VNInfo::Allocator *Alloc; variable
127 LiveRangeCalc() : MRI(0), Indexes(0), DomTree(0), Alloc(0) {} in LiveRangeCalc()
DLiveRangeCalc.cpp28 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/
DImmutableIntervalMap.h97 ImutIntervalAVLFactory(BumpPtrAllocator &Alloc) in ImutIntervalAVLFactory() argument
98 : ImutAVLFactory<ImutInfo>(Alloc) {} in ImutIntervalAVLFactory()
214 Factory(BumpPtrAllocator& Alloc) : F(Alloc) {} in Factory() argument
DImmutableList.h160 ImmutableListFactory(BumpPtrAllocator& Alloc) in ImmutableListFactory() argument
161 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {} in ImmutableListFactory()
/external/tinyxml2/
Dtinyxml2.cpp490 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/
DYAMLParser.h139 , 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()

123