Searched refs:Alloc (Results 1 - 25 of 60) sorted by relevance

123

/external/llvm/unittests/Support/
H A DAllocatorTest.cpp20 BumpPtrAllocator Alloc; local
21 int *a = (int*)Alloc.Allocate(sizeof(int), 0);
22 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0);
23 int *c = (int*)Alloc.Allocate(sizeof(int), 0);
32 EXPECT_EQ(1U, Alloc.GetNumSlabs());
37 BumpPtrAllocator Alloc(4096, 4096);
38 Alloc.Allocate(3000, 0);
39 EXPECT_EQ(1U, Alloc.GetNumSlabs());
40 Alloc.Allocate(3000, 0);
41 EXPECT_EQ(2U, Alloc
64 BumpPtrAllocator Alloc; local
[all...]
/external/clang/test/CodeCompletion/
H A Dtemplates.cpp8 template<typename T, typename Alloc = std::allocator<T> >
9 class vector : Alloc {
14 template<typename Alloc> class vector<bool, Alloc>;
22 // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>
/external/clang/test/CXX/temp/temp.decls/temp.alias/
H A Dp2.cpp18 template<class T> struct Alloc {}; struct in namespace:StdExample
19 template<class T> using Vec = vector<T, Alloc<T>>;
27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}}
34 void g(TT<int, Alloc<int>>);
42 // v's type is same as vector<int, Alloc<int>>.
43 using VTest = vector<int, Alloc<int>>;
/external/clang/test/CodeGenCXX/
H A Dmangle-alias-template.cpp4 template<typename T> using Alloc = alloc<T>;
5 template<typename T, typename A = Alloc<T>> struct vector {};
31 Alloc<int> AC;
35 h<Alloc>(AC);
H A Dnew.cpp152 struct Alloc{ struct
156 ~Alloc();
164 delete[] new Alloc[10][20];
/external/clang/test/SemaCXX/
H A DPR9902.cpp15 template <class Alloc>
18 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
H A DPR9908.cpp9 template <class Alloc>
12 typedef Alloc allocator_type;
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DBlockCounter.h46 Factory(llvm::BumpPtrAllocator& Alloc);
H A DProgramStateTrait.h65 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { argument
66 return new typename data_type::Factory(Alloc);
107 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { argument
108 return new typename data_type::Factory(Alloc);
145 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { argument
146 return new typename data_type::Factory(Alloc);
H A DBasicValueFactory.h81 BasicValueFactory(ASTContext &ctx, llvm::BumpPtrAllocator& Alloc) argument
82 : Ctx(ctx), BPAlloc(Alloc), PersistentSVals(0), PersistentSValPairs(0),
83 SValListFactory(Alloc) {}
/external/skia/src/core/
H A DSkRegionPriv.h25 static RunHead* Alloc(int count) function in struct:SkRegion::RunHead
65 writable = Alloc(fRunCount);
H A DSkPictureFlat.cpp18 SkFlatData* SkFlatData::Alloc(SkChunkAlloc* heap, int32_t size, int index) { function in class:SkFlatData
32 SkFlatBitmap* result = (SkFlatBitmap*) INHERITED::Alloc(heap, size, index);
39 SkFlatMatrix* result = (SkFlatMatrix*) INHERITED::Alloc(heap, size, index);
100 SkFlatPaint* result = (SkFlatPaint*) INHERITED::Alloc(heap, size, index);
218 SkFlatRegion* result = (SkFlatRegion*) INHERITED::Alloc(heap, size, index);
/external/clang/lib/StaticAnalyzer/Core/
H A DBlockCounter.cpp66 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { argument
67 F = new CountMap::Factory(Alloc);
/external/llvm/lib/CodeGen/
H A DLiveRangeCalc.h40 VNInfo::Allocator *Alloc; member in class:llvm::LiveRangeCalc
127 LiveRangeCalc() : MRI(0), Indexes(0), DomTree(0), Alloc(0) {}
162 /// single existing value, Alloc may be null.
H A DLiveRangeCalc.cpp28 Alloc = VNIA;
57 LI->createDeadDef(Idx, *Alloc);
322 assert(Alloc && "Need VNInfo allocator to create PHI-defs");
325 VNInfo *VNI = I->LI->getNextValue(Start, *Alloc);
/external/zlib/src/contrib/dotzlib/DotZLib/
H A DChecksumImpl.cs137 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned);
188 GCHandle hData = GCHandle.Alloc(data, GCHandleType.Pinned);
H A DCodecBase.cs54 _hInput = GCHandle.Alloc(_inBuffer, GCHandleType.Pinned);
55 _hOutput = GCHandle.Alloc(_outBuffer, GCHandleType.Pinned);
H A DGZipStream.cs162 GCHandle h = GCHandle.Alloc(buffer, GCHandleType.Pinned);
207 GCHandle h = GCHandle.Alloc(buffer, GCHandleType.Pinned);
/external/clang/include/clang/Analysis/Support/
H A DBumpVector.h33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; member in class:clang::BumpVectorContext
37 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {}
42 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {}
45 if (Alloc.getInt())
46 delete Alloc.getPointer();
49 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); }
/external/skia/include/core/
H A DSkDescriptor.h23 static SkDescriptor* Alloc(size_t length) function in class:SkDescriptor
92 SkDescriptor* desc = SkDescriptor::Alloc(fLength);
160 fDesc = SkDescriptor::Alloc(size);
/external/clang/include/clang/Lex/
H A DPTHManager.h42 /// Alloc - Allocator used for IdentifierInfo objects.
43 llvm::BumpPtrAllocator Alloc; member in class:clang::PTHManager
/external/clang/test/Index/
H A Dindex-templates.cpp8 template<typename T, typename Alloc = allocator<T> >
117 // CHECK-LOAD: index-templates.cpp:8:31: TemplateTypeParameter=Alloc:8:31 (Definition) Extent=[8:22 - 8:51]
/external/clang/test/SemaTemplate/
H A Dissue150.cpp78 template<class> class Alloc>
/external/llvm/include/llvm/ADT/
H A DImmutableIntervalMap.h97 ImutIntervalAVLFactory(BumpPtrAllocator &Alloc) argument
98 : ImutAVLFactory<ImutInfo>(Alloc) {}
214 Factory(BumpPtrAllocator& Alloc) : F(Alloc) {} argument
/external/llvm/include/llvm/Support/
H A DYAMLParser.h139 , BumpPtrAllocator &Alloc
141 return Alloc.Allocate(Size, Alignment);
144 void operator delete(void *Ptr, BumpPtrAllocator &Alloc, size_t) throw() { argument
145 Alloc.Deallocate(Ptr);

Completed in 1387 milliseconds

123