Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/external/llvm/test/Transforms/InstCombine/
D2009-02-20-InstCombine-SROA.ll8 %"struct.__gnu_cxx::__normal_iterator<int*,std::vector<int, std::allocator<int> > >" = type { i32* }
9 %"struct.std::_Vector_base<int,std::allocator<int> >" = type { %"struct.std::_Vector_base<int,std::
10 %"struct.std::_Vector_base<int,std::allocator<int> >::_Vector_impl" = type { i32*, i32*, i32* }
15 %"struct.std::vector<int,std::allocator<int> >" = type { %"struct.std::_Vector_base<int,std::alloca…
17 define i32* @_Z3fooRSt6vectorIiSaIiEE(%"struct.std::vector<int,std::allocator<int> >"* %X) {
19 %0 = alloca %"struct.__gnu_cxx::__normal_iterator<int*,std::vector<int, std::allocator<int> > >"
20 …r.i.i = alloca %"struct.__gnu_cxx::__normal_iterator<int*,std::vector<int, std::allocator<int> > >"
21 …r.i.i = alloca %"struct.__gnu_cxx::__normal_iterator<int*,std::vector<int, std::allocator<int> > >"
24 …ddr.i = alloca %"struct.__gnu_cxx::__normal_iterator<int*,std::vector<int, std::allocator<int> > >"
26 %3 = alloca %"struct.__gnu_cxx::__normal_iterator<int*,std::vector<int, std::allocator<int> > >"
[all …]
/external/libcxx/test/std/utilities/memory/default.allocator/
Dallocator_types.pass.cpp36 static_assert((std::is_same<std::allocator<char>::size_type, std::size_t>::value), ""); in main()
37 static_assert((std::is_same<std::allocator<char>::difference_type, std::ptrdiff_t>::value), ""); in main()
38 static_assert((std::is_same<std::allocator<char>::pointer, char*>::value), ""); in main()
39 static_assert((std::is_same<std::allocator<char>::const_pointer, const char*>::value), ""); in main()
40 static_assert((std::is_same<std::allocator<char>::value_type, char>::value), ""); in main()
41 static_assert((std::is_same<std::allocator<char>::reference, char&>::value), ""); in main()
42 static_assert((std::is_same<std::allocator<char>::const_reference, const char&>::value), ""); in main()
43 static_assert((std::is_same<std::allocator<char>::rebind<int>::other, in main()
44 std::allocator<int> >::value), ""); in main()
45 std::allocator<char> a; in main()
[all …]
Dallocator_void.pass.cpp28 static_assert((std::is_same<std::allocator<void>::pointer, void*>::value), ""); in main()
29 static_assert((std::is_same<std::allocator<void>::const_pointer, const void*>::value), ""); in main()
30 static_assert((std::is_same<std::allocator<void>::value_type, void>::value), ""); in main()
31 static_assert((std::is_same<std::allocator<void>::rebind<int>::other, in main()
32 std::allocator<int> >::value), ""); in main()
33 std::allocator<void> a; in main()
34 std::allocator<void> a2 = a; in main()
/external/llvm/test/CodeGen/X86/
D2009-11-17-UpdateTerminator.ll8 …std::char_traits<char>, std::allocator<char> >,std::allocator<std::basic_string<char, std::char_tr…
9 …ntInfo,std::allocator<llvm::InlineAsm::ConstraintInfo> >" = type { %"struct.std::_Vector_base<llvm…
10 %"struct.std::_Vector_base<llvm::InlineAsm::ConstraintInfo,std::allocator<llvm::InlineAsm::Constrai…
11allocator<char> >,std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<ch…
12 …std::char_traits<char>, std::allocator<char> >,std::allocator<std::basic_string<char, std::char_tr…
13 %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_hider" = type…
14 …g" = type { %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Alloc_…
15 …ntInfo,std::allocator<llvm::InlineAsm::ConstraintInfo> >" = type { %"struct.std::_Vector_base<llvm…
16allocator<char> >,std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<ch…
18 …, i64 %Str.1, %"struct.std::vector<llvm::InlineAsm::ConstraintInfo,std::allocator<llvm::InlineAsm:…
Dscev-interchange.ll8 …,std::allocator<Polynomials::Polynomial<double> > >", i32, %"struct.std::vector<int,std::allocator
9 …mial<double>" = type { %struct.Subscriptor, %"struct.std::vector<double,std::allocator<double> >" }
15 …%"struct.std::_Bvector_base<std::allocator<bool> >" = type { %"struct.std::_Bvector_base<std::allo…
16 …%"struct.std::_Bvector_base<std::allocator<bool> >::_Bvector_impl" = type { %"struct.std::_Bit_con…
17 …ouble>,std::allocator<Polynomials::Polynomial<double> > >" = type { %"struct.std::_Vector_base<Pol…
18 …%"struct.std::_Vector_base<Polynomials::Polynomial<double>,std::allocator<Polynomials::Polynomial<…
19 …struct.std::_Vector_base<double,std::allocator<double> >" = type { %"struct.std::_Vector_base<doub…
20 …%"struct.std::_Vector_base<double,std::allocator<double> >::_Vector_impl" = type { double*, double…
21 …%"struct.std::_Vector_base<int,std::allocator<int> >" = type { %"struct.std::_Vector_base<int,std:…
22 %"struct.std::_Vector_base<int,std::allocator<int> >::_Vector_impl" = type { i32*, i32*, i32* }
[all …]
/external/libcxx/test/std/containers/sequences/deque/deque.cons/
Dsize_value.pass.cpp35 test<int, std::allocator<int> >(0, 5); in main()
36 test<int, std::allocator<int> >(1, 10); in main()
37 test<int, std::allocator<int> >(10, 11); in main()
38 test<int, std::allocator<int> >(1023, -11); in main()
39 test<int, std::allocator<int> >(1024, 25); in main()
40 test<int, std::allocator<int> >(1025, 0); in main()
41 test<int, std::allocator<int> >(2047, 110); in main()
42 test<int, std::allocator<int> >(2048, -500); in main()
43 test<int, std::allocator<int> >(2049, 654); in main()
44 test<int, std::allocator<int> >(4095, 78); in main()
[all …]
Dsize.pass.cpp88 test<DefaultOnly, std::allocator<DefaultOnly> >(0); in main()
89 test<DefaultOnly, std::allocator<DefaultOnly> >(1); in main()
90 test<DefaultOnly, std::allocator<DefaultOnly> >(10); in main()
91 test<DefaultOnly, std::allocator<DefaultOnly> >(1023); in main()
92 test<DefaultOnly, std::allocator<DefaultOnly> >(1024); in main()
93 test<DefaultOnly, std::allocator<DefaultOnly> >(1025); in main()
94 test<DefaultOnly, std::allocator<DefaultOnly> >(2047); in main()
95 test<DefaultOnly, std::allocator<DefaultOnly> >(2048); in main()
96 test<DefaultOnly, std::allocator<DefaultOnly> >(2049); in main()
97 test<DefaultOnly, std::allocator<DefaultOnly> >(4095); in main()
[all …]
/external/skia/tests/
DGrAllocatorTest.cpp26 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt,
31 static void check_allocator(GrTAllocator<C>* allocator, int cnt, int popCnt, in check_allocator() argument
33 SkASSERT(allocator); in check_allocator()
34 SkASSERT(allocator->empty()); in check_allocator()
38 allocator->push_back(C(i)); in check_allocator()
40 allocator->push_back() = C(i); in check_allocator()
43 check_allocator_helper(allocator, cnt, popCnt, reporter); in check_allocator()
44 allocator->reset(); in check_allocator()
45 check_allocator_helper(allocator, 0, 0, reporter); in check_allocator()
50 static void check_allocator_helper(GrTAllocator<C>* allocator, int cnt, int popCnt, in check_allocator_helper() argument
[all …]
DNameAllocatorTest.cpp137 GrGLNameAllocator allocator(1, 1 + range); in DEF_GPUTEST() local
139 allocator.allocateName(); in DEF_GPUTEST()
141 REPORTER_ASSERT(reporter, 0 == allocator.allocateName()); in DEF_GPUTEST()
144 allocator.free(allocator.firstName() - 1); in DEF_GPUTEST()
145 allocator.free(allocator.endName()); in DEF_GPUTEST()
146 REPORTER_ASSERT(reporter, 0 == allocator.allocateName()); in DEF_GPUTEST()
150 allocator.free(i); in DEF_GPUTEST()
154 allocator.free(i); in DEF_GPUTEST()
158 allocator.free(i); in DEF_GPUTEST()
161 if (0 == allocator.allocateName()) { in DEF_GPUTEST()
[all …]
/external/v8/src/
Dlist.h32 explicit List(AllocationPolicy allocator = AllocationPolicy()) {
33 Initialize(0, allocator);
36 AllocationPolicy allocator = AllocationPolicy())) {
37 Initialize(capacity, allocator);
49 AllocationPolicy allocator = AllocationPolicy())) {
50 return allocator.New(static_cast<int>(size));
57 INLINE(void operator delete(void* p, AllocationPolicy allocator)) { in INLINE() argument
87 void Add(const T& element, AllocationPolicy allocator = AllocationPolicy());
91 AllocationPolicy allocator = AllocationPolicy());
95 AllocationPolicy allocator = AllocationPolicy());
[all …]
Dhashmap.h30 AllocationPolicy allocator = AllocationPolicy());
50 AllocationPolicy allocator = AllocationPolicy());
92 void Initialize(uint32_t capacity, AllocationPolicy allocator);
93 void Resize(AllocationPolicy allocator);
100 MatchFun match, uint32_t initial_capacity, AllocationPolicy allocator) { in TemplateHashMapImpl() argument
102 Initialize(initial_capacity, allocator); in TemplateHashMapImpl()
115 void* key, uint32_t hash, bool insert, AllocationPolicy allocator) { in Lookup() argument
132 Resize(allocator); in Lookup()
262 uint32_t capacity, AllocationPolicy allocator) { in Initialize() argument
264 map_ = reinterpret_cast<Entry*>(allocator.New(capacity * sizeof(Entry))); in Initialize()
[all …]
/external/compiler-rt/lib/lsan/
Dlsan_allocator.cc56 static Allocator allocator; variable
60 allocator.InitLinkerInitialized(common_flags()->allocator_may_return_null); in InitializeAllocator()
64 allocator.SwallowCache(&cache); in AllocatorThreadFinish()
68 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); in Metadata()
96 void *p = allocator.Allocate(&cache, size, alignment, false); in Allocate()
98 if (cleared && allocator.FromPrimary(p)) in Allocate()
108 allocator.Deallocate(&cache, p); in Deallocate()
116 allocator.Deallocate(&cache, p); in Reallocate()
119 p = allocator.Reallocate(&cache, p, new_size, alignment); in Reallocate()
138 allocator.ForceLock(); in LockAllocator()
[all …]
/external/llvm/test/CodeGen/Thumb2/
D2009-10-15-ITBlockBranch.ll5 …mal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::allocator<char> > >" = typ…
7 …ar>,std::allocator<char> >" = type { %"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string…
8 …::char_traits<char>,std::allocator<char> >::_Rep" = type { %"struct.std::basic_string<char,std::ch…
9 %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep_base" = type { …
12 …std::char_traits<char>,std::allocator<char> >"* %this, %"struct.std::basic_string<char,std::char_t…
18 …NKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this)…
19 …NKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %__str…
22 …s7_M_dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this)…
23 …NKSs4dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %__str…
38 …ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this)
[all …]
Dv8_IT_4.ll6 …mal_iterator<char*,std::basic_string<char, std::char_traits<char>, std::allocator<char> > >" = typ…
8 …ar>,std::allocator<char> >" = type { %"struct.__gnu_cxx::__normal_iterator<char*,std::basic_string…
9 …::char_traits<char>,std::allocator<char> >::_Rep" = type { %"struct.std::basic_string<char,std::ch…
10 %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Rep_base" = type { …
13 …std::char_traits<char>,std::allocator<char> >"* %this, %"struct.std::basic_string<char,std::char_t…
21 …NKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this)…
22 …NKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %__str…
25 …s7_M_dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this)…
26 …NKSs4dataEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %__str…
41 …ZNKSs4sizeEv(%"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >"* %this)
[all …]
D2009-08-02-CoalescerBug.ll8 %"struct.std::CharVectorType" = type { %"struct.std::_Vector_base<char,std::allocator<char> >" }
11 …%"struct.std::_Bvector_base<std::allocator<bool> >" = type { %"struct.std::_Bvector_base<std::allo…
12 …%"struct.std::_Bvector_base<std::allocator<bool> >::_Bvector_impl" = type { %"struct.std::_Bit_con…
13 …%"struct.std::_Vector_base<char,std::allocator<char> >" = type { %"struct.std::_Vector_base<char,s…
14 %"struct.std::_Vector_base<char,std::allocator<char> >::_Vector_impl" = type { i8*, i8*, i8* }
15 …<short unsigned int,std::allocator<short unsigned int> >" = type { %"struct.std::_Vector_base<shor…
16 …%"struct.std::_Vector_base<short unsigned int,std::allocator<short unsigned int> >::_Vector_impl" …
18 …%"struct.std::vector<bool,std::allocator<bool> >" = type { %"struct.std::_Bvector_base<std::alloca…
19 …<short unsigned int,std::allocator<short unsigned int> >" = type { %"struct.std::_Vector_base<shor…
21allocator<bool> >", %"struct.xalanc_1_8::XalanDOMString", i8, i8, i8, i8, i8, %"struct.xalanc_1_8:…
[all …]
/external/compiler-rt/lib/msan/
Dmsan_allocator.cc67 static Allocator allocator; variable
77 allocator.Init(common_flags()->allocator_may_return_null); in Init()
87 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack()
96 return allocator.ReturnNullOrDie(); in MsanAllocate()
102 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate()
106 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate()
109 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
129 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in MsanDeallocate()
145 allocator.Deallocate(cache, p); in MsanDeallocate()
149 allocator.Deallocate(cache, p); in MsanDeallocate()
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_symbolizer_posix_libcdep.cc161 explicit LLVMSymbolizer(const char *path, LowLevelAllocator *allocator) in LLVMSymbolizer() argument
162 : symbolizer_process_(new(*allocator) LLVMSymbolizerProcess(path)) {} in LLVMSymbolizer()
227 LowLevelAllocator *allocator) in Addr2LinePool() argument
228 : addr2line_path_(addr2line_path), allocator_(allocator), in Addr2LinePool()
363 static SymbolizerTool *ChooseExternalSymbolizer(LowLevelAllocator *allocator) { in ChooseExternalSymbolizer() argument
371 return new(*allocator) LLVMSymbolizer(path, allocator); in ChooseExternalSymbolizer()
375 return new(*allocator) AtosSymbolizer(path, allocator); in ChooseExternalSymbolizer()
382 return new(*allocator) Addr2LinePool(path, allocator); in ChooseExternalSymbolizer()
394 return new(*allocator) LLVMSymbolizer(found_path, allocator); in ChooseExternalSymbolizer()
399 return new(*allocator) AtosSymbolizer(found_path, allocator); in ChooseExternalSymbolizer()
[all …]
/external/llvm/test/Transforms/IndVarSimplify/
D2004-04-05-InvokeCastCrash.ll6allocator<int> >" = type { %"struct.__gnu_cxx::hashtable<std::pair<const llvm::Value* const, int>,…
7allocator<const llvm::Constant*> >" = type { %"struct.__gnu_cxx::hashtable<const llvm::Constant*,c…
8allocator<const llvm::Constant*> >" = type { %struct.__false_type, %struct.__false_type, %struct._…
9allocator<int> >" = type { %struct.__false_type, %struct.__false_type, %struct.__false_type, %stru…
17 …m::AbstractTypeUser", %"struct.std::vector<llvm::AbstractTypeUser*,std::allocator<llvm::AbstractTy…
28allocator<const llvm::Constant*> >", %"struct.__gnu_cxx::hash_map<const llvm::Value*,int,__gnu_cxx…
30 …Instr" = type { i16, i8, %"struct.std::vector<llvm::MachineOperand,std::allocator<llvm::MachineOpe…
36 …%"struct.std::vector<std::pair<const llvm::PassInfo*, llvm::Pass*>,std::allocator<std::pair<const …
37 …t.std::type_info"*, i8, %"struct.std::vector<const llvm::PassInfo*,std::allocator<const llvm::Pass…
46 …32 (...)**, %"struct.std::basic_string<char,std::char_traits<char>,std::allocator<char> >", %"stru…
[all …]
/external/skia/src/pathops/
DSkOpContour.h37 void addConic(SkPoint pts[3], SkScalar weight, SkChunkAlloc* allocator) { in addConic() argument
38 appendSegment(allocator).addConic(pts, weight, this); in addConic()
41 void addCubic(SkPoint pts[4], SkChunkAlloc* allocator) { in addCubic() argument
42 appendSegment(allocator).addCubic(pts, this); in addCubic()
45 SkOpSegment* addCurve(SkPath::Verb verb, const SkPoint pts[4], SkChunkAlloc* allocator);
47 void addLine(SkPoint pts[2], SkChunkAlloc* allocator) { in addLine() argument
48 appendSegment(allocator).addLine(pts, this); in addLine()
51 void addQuad(SkPoint pts[3], SkChunkAlloc* allocator) { in addQuad() argument
52 appendSegment(allocator).addQuad(pts, this); in addQuad()
63 SkOpSegment& appendSegment(SkChunkAlloc* allocator) { in appendSegment() argument
[all …]
DSkOpTAllocator.h16 static T* Allocate(SkChunkAlloc* allocator) { in Allocate() argument
17 void* ptr = allocator->allocThrow(sizeof(T)); in Allocate()
22 static T* AllocateArray(SkChunkAlloc* allocator, int count) { in AllocateArray() argument
23 void* ptr = allocator->allocThrow(sizeof(T) * count); in AllocateArray()
28 static T* New(SkChunkAlloc* allocator) { in New() argument
29 return new (Allocate(allocator)) T(); in New()
DSkOpContour.cpp14 SkChunkAlloc* allocator) { in addCurve() argument
17 SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 2); in addCurve()
19 return appendSegment(allocator).addLine(ptStorage, this); in addCurve()
22 SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 3); in addCurve()
24 return appendSegment(allocator).addQuad(ptStorage, this); in addCurve()
30 SkPoint* ptStorage = SkOpTAllocator<SkPoint>::AllocateArray(allocator, 4); in addCurve()
32 return appendSegment(allocator).addCubic(ptStorage, this); in addCurve()
/external/google-breakpad/src/client/mac/handler/testcases/testdata/
Ddump_syms_i386_breakpad.sym16 FILE 15 /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/allocator.h
70 FILE 69 /Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/bits/allocator.h
497 … long, dwarf2reader::FunctionInfo*, std::less<unsigned long long>, std::allocator<std::pair<unsign…
815 …<std::pair<dwarf2reader::DwarfAttribute, dwarf2reader::DwarfForm>, std::allocator<std::pair<dwarf2…
889 …st, dwarf2reader::FunctionInfo*> >, std::less<unsigned long long>, std::allocator<std::pair<unsign…
892 …air<std::string, unsigned int> > >, std::less<unsigned long long>, std::allocator<std::pair<unsign…
914 FUNC 6e7a 2b 0 std::_Vector_base<dwarf2reader::SourceFileInfo, std::allocator<dwarf2reader::SourceF…
937 FUNC 6f5e 2b 0 std::_Vector_base<std::string, std::allocator<std::string> >::get_allocator() const
943 FUNC 6fa2 23 0 std::vector<dwarf2reader::SourceFileInfo, std::allocator<dwarf2reader::SourceFileInf…
947 FUNC 6fc6 26 0 std::vector<dwarf2reader::SourceFileInfo, std::allocator<dwarf2reader::SourceFileInf…
[all …]
/external/llvm/test/Transforms/GVN/
D2009-03-10-PREOnVoid.ll13allocator<ShadowInfo> > >,std::_Select1st<std::pair<void* const, std::vector<ShadowInfo, std::allo…
14allocator<ShadowInfo> > >,std::_Select1st<std::pair<void* const, std::vector<ShadowInfo, std::allo…
15 …%"struct.std::_Rb_tree_iterator<std::pair<void* const, std::vector<ShadowInfo, std::allocator<Shad…
17 …o, std::allocator<ShadowInfo> > > >,bool>" = type { %"struct.std::_Rb_tree_iterator<std::pair<void…
37allocator<ShadowInfo> > > >,bool>"* noalias nocapture sret %agg.result, %"struct.std::_Rb_tree<voi…
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_testlib.cc46 static Allocator allocator; variable
57 allocator.SwallowCache(&cache); in thread_dtor()
63 allocator.Init(); in thread_init()
76 void *p = allocator.Allocate(&cache, size, 8); in malloc()
85 allocator.Deallocate(&cache, p); in free()
92 void *p = allocator.Allocate(&cache, size, 8, false); in calloc()
104 p = allocator.Reallocate(&cache, p, size, 8); in realloc()
114 void *p = allocator.Allocate(&cache, size, alignment); in memalign()
122 *memptr = allocator.Allocate(&cache, size, alignment); in posix_memalign()
132 void *p = allocator.Allocate(&cache, size, GetPageSizeCached()); in valloc()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_mman.cc43 Allocator *allocator() { in allocator() function
48 allocator()->Init(common_flags()->allocator_may_return_null); in InitializeAllocator()
52 allocator()->InitCache(&thr->alloc_cache); in AllocatorThreadStart()
57 allocator()->DestroyCache(&thr->alloc_cache); in AllocatorThreadFinish()
62 allocator()->PrintStats(); in AllocatorPrintStats()
81 return allocator()->ReturnNullOrDie(); in user_alloc()
82 void *p = allocator()->Allocate(&thr->alloc_cache, sz, align); in user_alloc()
94 return allocator()->ReturnNullOrDie(); in user_calloc()
104 allocator()->Deallocate(&thr->alloc_cache, p); in user_free()
190 allocator()->GetStats(stats); in __sanitizer_get_current_allocated_bytes()
[all …]

12345678910>>...16