Searched defs:Alloc (Results 1 - 25 of 31) sorted by relevance

12

/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/skia/src/core/
H A DSkRegionPriv.h25 static RunHead* Alloc(int count) function in struct:SkRegion::RunHead
65 writable = Alloc(fRunCount);
H A DSkMetaData.cpp120 Rec* rec = Rec::Alloc(sizeof(Rec) + dataSize * count + len + 1);
330 SkMetaData::Rec* SkMetaData::Rec::Alloc(size_t size) { function in class:SkMetaData::Rec
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);
H A DSkBitmap.cpp41 static MipMap* Alloc(int levelCount, size_t pixelSize) { function in struct:SkBitmap::MipMap
1143 MipMap* mm = MipMap::Alloc(maxLevels, size);
/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/include/clang/Lex/
H A DPTHManager.h42 /// Alloc - Allocator used for IdentifierInfo objects.
43 llvm::BumpPtrAllocator Alloc; member in class:clang::PTHManager
/external/clang/lib/StaticAnalyzer/Core/
H A DBlockCounter.cpp66 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { argument
67 F = new CountMap::Factory(Alloc);
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
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.h76 BasicValueFactory(ASTContext &ctx, llvm::BumpPtrAllocator& Alloc) argument
77 : Ctx(ctx), BPAlloc(Alloc), PersistentSVals(0), PersistentSValPairs(0),
78 SValListFactory(Alloc) {}
H A DProgramState.h416 llvm::BumpPtrAllocator &Alloc; member in class:clang::ento::ProgramStateManager
431 Alloc(alloc) {
444 Alloc(alloc) {
474 llvm::BumpPtrAllocator& getAllocator() { return Alloc; }
/external/llvm/lib/CodeGen/
H A DLiveRangeCalc.cpp61 VNInfo::Allocator *Alloc) {
82 updateSSA(Indexes, DomTree, Alloc);
93 VNInfo::Allocator *Alloc) {
96 updateSSA(Indexes, DomTree, Alloc);
173 VNInfo::Allocator *Alloc) {
237 assert(Alloc && "Need VNInfo allocator to create PHI-defs");
240 VNInfo *VNI = I->LI->getNextValue(Start, *Alloc);
57 extend(LiveInterval *LI, SlotIndex Kill, SlotIndexes *Indexes, MachineDominatorTree *DomTree, VNInfo::Allocator *Alloc) argument
91 calculateValues(SlotIndexes *Indexes, MachineDominatorTree *DomTree, VNInfo::Allocator *Alloc) argument
171 updateSSA(SlotIndexes *Indexes, MachineDominatorTree *DomTree, VNInfo::Allocator *Alloc) argument
/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/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/clang/test/CodeGenCXX/
H A Dnew.cpp152 struct Alloc{ struct
156 ~Alloc();
164 delete[] new Alloc[10][20];
H A Dmangle.cpp300 template<typename T, typename = Policy<P, true> > class Alloc class in namespace:PR5861
306 template class Alloc<char>;
/external/llvm/include/llvm/ADT/
H A DImmutableIntervalMap.h97 ImutIntervalAVLFactory(BumpPtrAllocator &Alloc) argument
98 : ImutAVLFactory<ImutInfo>(Alloc) {}
214 Factory(BumpPtrAllocator& Alloc) : F(Alloc) {} argument
H A DImmutableList.h160 ImmutableListFactory(BumpPtrAllocator& Alloc) argument
161 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {}
H A DImmutableMap.h105 Factory(BumpPtrAllocator& Alloc, bool canonicalize = true) argument
106 : F(Alloc), Canonicalize(canonicalize) {}
H A DImmutableSet.h394 ImutAVLFactory(BumpPtrAllocator& Alloc) argument
395 : Allocator(reinterpret_cast<uintptr_t>(&Alloc) | 0x1) {}
972 Factory(BumpPtrAllocator& Alloc, bool canonicalize = true) argument
973 : F(Alloc), Canonicalize(canonicalize) {}
/external/clang/tools/libclang/
H A DCXLoadedDiagnostic.cpp45 llvm::BumpPtrAllocator Alloc; member in class:__anon4323::CXLoadedDiagnosticSetImpl
58 char *mem = Alloc.Allocate<char>(bloblen + 1);
527 Start = TopDiags.Alloc.Allocate<CXLoadedDiagnostic::Location>();
528 End = TopDiags.Alloc.Allocate<CXLoadedDiagnostic::Location>();
/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);
/external/clang/lib/Basic/
H A DSourceManager.cpp1046 llvm::BumpPtrAllocator &Alloc,
1049 llvm::BumpPtrAllocator &Alloc,
1126 FI->SourceLineCache = Alloc.Allocate<unsigned>(LineOffsets.size());
1048 ComputeLineNumbers(DiagnosticsEngine &Diag, ContentCache *FI, llvm::BumpPtrAllocator &Alloc, const SourceManager &SM, bool &Invalid) argument
/external/clang/lib/CodeGen/
H A DCGDecl.cpp843 llvm::AllocaInst *Alloc = CreateTempAlloca(LTy); local
844 Alloc->setName(D.getName());
850 Alloc->setAlignment(allocaAlignment.getQuantity());
851 DeclPtr = Alloc;
1497 llvm::AllocaInst *Alloc = CreateTempAlloca(ConvertTypeForMem(Ty), local
1499 Alloc->setAlignment(getContext().getDeclAlign(&D).getQuantity());
1500 DeclPtr = Alloc;
/external/llvm/lib/Support/
H A DYAMLParser.cpp155 return new (Alloc.Allocate<Token>()) Token(V);
165 BumpPtrAllocator Alloc; member in struct:llvm::ilist_node_traits
751 TokenQueue.Alloc.Reset();

Completed in 613 milliseconds

12