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

12345678

/external/llvm/unittests/Support/
H A DAllocatorTest.cpp19 BumpPtrAllocator Alloc; local
20 int *a = (int*)Alloc.Allocate(sizeof(int), 1);
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1);
22 int *c = (int*)Alloc.Allocate(sizeof(int), 1);
31 EXPECT_EQ(1U, Alloc.GetNumSlabs());
33 BumpPtrAllocator Alloc2 = std::move(Alloc);
34 EXPECT_EQ(0U, Alloc.GetNumSlabs());
44 Alloc = std::move(Alloc2);
46 EXPECT_EQ(1U, Alloc.GetNumSlabs());
51 BumpPtrAllocator Alloc; local
63 BumpPtrAllocator Alloc; local
85 BumpPtrAllocator Alloc; local
106 BumpPtrAllocator Alloc; local
119 BumpPtrAllocator Alloc; local
127 BumpPtrAllocator Alloc; local
175 BumpPtrAllocatorImpl<MockSlabAllocator> 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/libcxx/test/std/experimental/filesystem/class.path/path.member/path.generic.obs/
H A Dgeneric_string_alloc.pass.cpp44 using Alloc = malloc_allocator<CharT>;
45 using Str = std::basic_string<CharT, Traits, Alloc>;
50 Alloc a;
51 Alloc::disable_default_constructor = true;
52 Str s = p.generic_string<wchar_t, Traits, Alloc>(a);
54 assert(Alloc::alloc_count > 0);
55 assert(Alloc::outstanding_alloc() == 1);
/external/swiftshader/third_party/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/llvm/include/llvm/Support/
H A DStringSaver.h22 BumpPtrAllocator &Alloc; member in class:llvm::final
25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} argument
/external/libcxx/test/support/
H A Dasan_testing.h19 template <typename T, typename Alloc>
20 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c )
22 if ( std::is_same<Alloc, std::allocator<T> >::value && c.data() != NULL)
29 template <typename T, typename Alloc>
30 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &)
H A Duses_alloc_types.hpp21 // (1) UA_AllocArg: 'T(allocator_arg_t, Alloc const&, Args&&...)'
22 // (2) UA_AllocLast: 'T(Args&&..., Alloc const&)'
57 template <class Alloc, std::size_t N>
60 // 'Alloc' type and exactly 'N' additional arguments. It also provides
64 template <class Alloc, std::size_t N>
67 // 'Alloc' type and exactly 'N' additional arguments. It also provides
70 template <class Alloc, std::size_t N>
73 // the specified 'Alloc' type and exactly 'N' additional arguments. It also
76 template <class Alloc, std::size_t>
79 // the specified 'Alloc' typ
[all...]
/external/llvm/unittests/CodeGen/
H A DDIEHashTest.cpp26 BumpPtrAllocator Alloc; member in class:__anon13624::DIEHashTest
41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type);
43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size);
50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type);
52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One);
55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One);
56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One);
65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type);
68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr);
69 Foo.addValue(Alloc, dwar
[all...]
/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 {};
27 Alloc<int> AC;
31 h<Alloc>(AC);
/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/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_dense_alloc_test.cc25 typedef DenseSlabAlloc<int, 128, 128> Alloc; typedef
26 typedef Alloc::Cache Cache;
27 typedef Alloc::IndexT IndexT;
30 Alloc alloc;
37 IndexT idx = alloc.Alloc(&cache);
/external/libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
H A Ddb_deallocate.pass.cpp32 using Alloc = ex::polymorphic_allocator<int>;
33 using Traits = std::allocator_traits<Alloc>;
35 Alloc a(&R);
/external/libcxx/test/libcxx/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/
H A Ddb_deallocate.pass.cpp32 using Alloc = NullAllocator<char>;
33 using R = ex::resource_adaptor<Alloc>;
35 ex::resource_adaptor<Alloc> r(Alloc{P});
/external/libcxx/test/std/containers/associative/
H A Diterator_types.pass.cpp62 typedef test_allocator<ValueTp> Alloc; typedef
63 typedef std::map<int, int, std::less<int>, Alloc> Map;
69 typedef min_allocator<ValueTp> Alloc; typedef
70 typedef std::map<int, int, std::less<int>, Alloc> Map;
81 typedef test_allocator<ValueTp> Alloc; typedef
82 typedef std::multimap<int, int, std::less<int>, Alloc> Map;
88 typedef min_allocator<ValueTp> Alloc; typedef
89 typedef std::multimap<int, int, std::less<int>, Alloc> Map;
100 typedef test_allocator<ValueTp> Alloc; typedef
101 typedef std::set<ValueTp, std::less<ValueTp>, Alloc> Se
107 typedef min_allocator<ValueTp> Alloc; typedef
119 typedef test_allocator<ValueTp> Alloc; typedef
126 typedef min_allocator<ValueTp> Alloc; typedef
[all...]
/external/llvm/lib/Support/
H A DStringSaver.cpp15 char *P = Alloc.Allocate<char>(S.size() + 1);
/external/clang/test/SemaCXX/
H A DPR9902.cpp16 template <class Alloc>
19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
H A DPR9908.cpp10 template <class Alloc>
13 typedef Alloc allocator_type;
/external/libchrome/base/containers/
H A Dhash_tables.h48 class Alloc = std::allocator<std::pair<const Key, T>>>
49 using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>;
56 class Alloc = std::allocator<std::pair<const Key, T>>>
57 using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>;
63 class Alloc = std::allocator<Key>>
64 using hash_multiset = std::unordered_multiset<Key, Hash, Pred, Alloc>;
70 class Alloc = std::allocator<Key>>
71 using hash_set = std::unordered_set<Key, Hash, Pred, Alloc>;
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
H A Dconstruct_pair_const_lvalue_pair.pass.cpp69 template <class Alloc, class TT, class UU>
73 using T = NotUsesAllocator<Alloc, 1>;
74 using U = NotUsesAllocator<Alloc, 1>;
78 using T = UsesAllocatorV1<Alloc, 1>;
79 using U = UsesAllocatorV2<Alloc, 1>;
83 using T = UsesAllocatorV2<Alloc, 1>;
84 using U = UsesAllocatorV3<Alloc, 1>;
88 using T = UsesAllocatorV3<Alloc, 1>;
89 using U = NotUsesAllocator<Alloc, 1>;
/external/libcxx/test/std/containers/unord/
H A Diterator_difference_type.pass.cpp85 typedef test_allocator<ValueTp> Alloc; typedef
86 typedef std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map;
92 typedef min_allocator<ValueTp> Alloc; typedef
93 typedef std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map;
104 typedef test_allocator<ValueTp> Alloc; typedef
105 typedef std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map;
111 typedef min_allocator<ValueTp> Alloc; typedef
112 typedef std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map;
123 typedef test_allocator<ValueTp> Alloc; typedef
124 typedef std::unordered_set<ValueTp, std::hash<ValueTp>, std::equal_to<ValueTp>, Alloc> Se
130 typedef min_allocator<ValueTp> Alloc; typedef
142 typedef test_allocator<ValueTp> Alloc; typedef
149 typedef min_allocator<ValueTp> Alloc; typedef
[all...]
/external/libcxx/test/std/containers/unord/unord.map/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<pair<const Key, T>>>
34 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2));
62 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2));
110 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
152 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
214 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
242 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
290 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
332 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
394 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
422 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
470 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
512 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
[all...]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
H A Dswap_non_member.pass.cpp13 // class Alloc = allocator<pair<const Key, T>>>
34 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2));
62 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2));
110 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
152 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
214 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
242 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
290 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
332 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
394 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
422 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
470 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
512 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
[all...]
/external/libcxx/test/std/containers/unord/unord.multiset/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<Value>>
33 typedef test_allocator<int> Alloc; typedef
34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2));
61 typedef test_allocator<int> Alloc; typedef
62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2));
109 typedef test_allocator<int> Alloc; typedef
151 typedef test_allocator<int> Alloc; typedef
213 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
421 typedef min_allocator<int> Alloc; typedef
469 typedef min_allocator<int> Alloc; typedef
511 typedef min_allocator<int> Alloc; typedef
[all...]
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
H A Dswap_non_member.pass.cpp13 // class Alloc = allocator<Value>>
33 typedef test_allocator<int> Alloc; typedef
34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2));
61 typedef test_allocator<int> Alloc; typedef
62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2));
109 typedef test_allocator<int> Alloc; typedef
151 typedef test_allocator<int> Alloc; typedef
213 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
421 typedef min_allocator<int> Alloc; typedef
469 typedef min_allocator<int> Alloc; typedef
511 typedef min_allocator<int> Alloc; typedef
[all...]
/external/libcxx/test/std/containers/unord/unord.set/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<Value>>
33 typedef test_allocator<int> Alloc; typedef
34 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2));
61 typedef test_allocator<int> Alloc; typedef
62 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1));
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2));
109 typedef test_allocator<int> Alloc; typedef
151 typedef test_allocator<int> Alloc; typedef
213 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
421 typedef min_allocator<int> Alloc; typedef
469 typedef min_allocator<int> Alloc; typedef
511 typedef min_allocator<int> Alloc; typedef
[all...]

Completed in 784 milliseconds

12345678