Home
last modified time | relevance | path

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

12345678910>>...14

/external/llvm/unittests/Support/
DAllocatorTest.cpp19 BumpPtrAllocator Alloc; in TEST() local
20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); in TEST()
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); in TEST()
22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); in TEST()
31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST()
33 BumpPtrAllocator Alloc2 = std::move(Alloc); in TEST()
34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); in TEST()
44 Alloc = std::move(Alloc2); in TEST()
46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST()
51 BumpPtrAllocator Alloc; in TEST() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DAllocatorTest.cpp19 BumpPtrAllocator Alloc; in TEST() local
20 int *a = (int*)Alloc.Allocate(sizeof(int), alignof(int)); in TEST()
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, alignof(int)); in TEST()
22 int *c = (int*)Alloc.Allocate(sizeof(int), alignof(int)); in TEST()
31 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST()
33 BumpPtrAllocator Alloc2 = std::move(Alloc); in TEST()
34 EXPECT_EQ(0U, Alloc.GetNumSlabs()); in TEST()
44 Alloc = std::move(Alloc2); in TEST()
46 EXPECT_EQ(1U, Alloc.GetNumSlabs()); in TEST()
51 BumpPtrAllocator Alloc; in TEST() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/
DDIEHashTest.cpp26 BumpPtrAllocator Alloc; member in __anon7f5f79800111::DIEHashTest
41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F()
43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); in TEST_F()
50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F()
55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); in TEST_F()
56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); in TEST_F()
65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); in TEST_F()
69 Foo.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F()
[all …]
/external/llvm/unittests/CodeGen/
DDIEHashTest.cpp26 BumpPtrAllocator Alloc; member in __anonef73b4480111::DIEHashTest
41 DIE &Die = *DIE::get(Alloc, dwarf::DW_TAG_base_type); in TEST_F()
43 Die.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, Size); in TEST_F()
50 DIE &Unnamed = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
52 Unnamed.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F()
55 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data1, One); in TEST_F()
56 Unnamed.addValue(Alloc, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data1, One); in TEST_F()
65 DIE &Foo = *DIE::get(Alloc, dwarf::DW_TAG_structure_type); in TEST_F()
68 Foo.addValue(Alloc, dwarf::DW_AT_name, dwarf::DW_FORM_strp, FooStr); in TEST_F()
69 Foo.addValue(Alloc, dwarf::DW_AT_byte_size, dwarf::DW_FORM_data1, One); in TEST_F()
[all …]
/external/swiftshader/third_party/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/libcxx/test/support/
Duses_alloc_types.hpp58 template <class Alloc, std::size_t N>
65 template <class Alloc, std::size_t N>
71 template <class Alloc, std::size_t N>
77 template <class Alloc, std::size_t>
147 template <class Alloc>
149 using type = Alloc;
156 template <class Alloc, bool = std::is_default_constructible<Alloc>::value>
158 Alloc allocator;
160 UsesAllocatorTestBaseStorage(Alloc const& a) : allocator(a) {} in UsesAllocatorTestBaseStorage()
161 const Alloc* get_allocator() const { return &allocator; } in get_allocator()
[all …]
/external/libcxx/test/libcxx/containers/sequences/vector/vector.cons/
Dconstruct_iter_iter_alloc.pass.cpp25 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef
26 Alloc a; in test_ctor_under_alloc()
28 Alloc::construct_called = false; in test_ctor_under_alloc()
30 assert(Alloc::construct_called); in test_ctor_under_alloc()
33 Alloc::construct_called = false; in test_ctor_under_alloc()
35 assert(Alloc::construct_called); in test_ctor_under_alloc()
40 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef
41 Alloc a; in test_ctor_under_alloc()
43 Alloc::construct_called = false; in test_ctor_under_alloc()
45 assert(Alloc::construct_called); in test_ctor_under_alloc()
[all …]
Dconstruct_iter_iter.pass.cpp24 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef
26 Alloc::construct_called = false; in test_ctor_under_alloc()
28 assert(Alloc::construct_called); in test_ctor_under_alloc()
31 Alloc::construct_called = false; in test_ctor_under_alloc()
33 assert(Alloc::construct_called); in test_ctor_under_alloc()
38 typedef C::allocator_type Alloc; in test_ctor_under_alloc() typedef
40 Alloc::construct_called = false; in test_ctor_under_alloc()
42 assert(Alloc::construct_called); in test_ctor_under_alloc()
45 Alloc::construct_called = false; in test_ctor_under_alloc()
47 assert(Alloc::construct_called); in test_ctor_under_alloc()
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/
Dconstruct_pair_const_lvalue_pair.pass.cpp69 template <class Alloc, class TT, class UU>
73 using T = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
74 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
78 using T = UsesAllocatorV1<Alloc, 1>; in test_pmr_uses_allocator()
79 using U = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator()
83 using T = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator()
84 using U = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator()
88 using T = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator()
89 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
94 template <class Alloc, class TT, class UU>
[all …]
Dconstruct_pair_rvalue.pass.cpp68 template <class Alloc, class TT, class UU>
72 using T = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
73 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
77 using T = UsesAllocatorV1<Alloc, 1>; in test_pmr_uses_allocator()
78 using U = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator()
82 using T = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator()
83 using U = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator()
87 using T = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator()
88 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
93 template <class Alloc, class TT, class UU>
[all …]
Dconstruct_pair_values.pass.cpp67 template <class Alloc, class TT, class UU>
71 using T = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
72 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
77 using T = UsesAllocatorV1<Alloc, 1>; in test_pmr_uses_allocator()
78 using U = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator()
83 using T = UsesAllocatorV2<Alloc, 1>; in test_pmr_uses_allocator()
84 using U = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator()
89 using T = UsesAllocatorV3<Alloc, 1>; in test_pmr_uses_allocator()
90 using U = NotUsesAllocator<Alloc, 1>; in test_pmr_uses_allocator()
96 template <class Alloc, class TT, class UU>
[all …]
Dconstruct_piecewise_pair.pass.cpp57 template <class Alloc, class ...TTypes, class ...UTypes>
61 using T = NotUsesAllocator<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator()
62 using U = NotUsesAllocator<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator()
67 using T = UsesAllocatorV1<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator()
68 using U = UsesAllocatorV2<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator()
73 using T = UsesAllocatorV2<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator()
74 using U = UsesAllocatorV3<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator()
79 using T = UsesAllocatorV3<Alloc, sizeof...(TTypes)>; in test_pmr_uses_allocator()
80 using U = NotUsesAllocator<Alloc, sizeof...(UTypes)>; in test_pmr_uses_allocator()
86 template <class Alloc, class ...TTypes, class ...UTypes>
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_non_member.pass.cpp33 typedef test_allocator<int> Alloc; in main() typedef
34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
61 typedef test_allocator<int> Alloc; in main() typedef
62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
109 typedef test_allocator<int> Alloc; in main() typedef
110 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dswap_member.pass.cpp33 typedef test_allocator<int> Alloc; in main() typedef
34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
61 typedef test_allocator<int> Alloc; in main() typedef
62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
109 typedef test_allocator<int> Alloc; in main() typedef
110 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_non_member.pass.cpp33 typedef test_allocator<int> Alloc; in main() typedef
34 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
61 typedef test_allocator<int> Alloc; in main() typedef
62 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
109 typedef test_allocator<int> Alloc; in main() typedef
110 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dswap_member.pass.cpp33 typedef test_allocator<int> Alloc; in main() typedef
34 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
61 typedef test_allocator<int> Alloc; in main() typedef
62 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
109 typedef test_allocator<int> Alloc; in main() typedef
110 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/
Dswap_member.pass.cpp34 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
110 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
111 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_non_member.pass.cpp34 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
35 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
63 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
110 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
111 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_non_member.pass.cpp34 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
35 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
62 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
76 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
110 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
111 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/associative/
Diterator_types.pass.cpp62 typedef test_allocator<ValueTp> Alloc; in main() typedef
63 typedef std::map<int, int, std::less<int>, Alloc> Map; in main()
69 typedef min_allocator<ValueTp> Alloc; in main() typedef
70 typedef std::map<int, int, std::less<int>, Alloc> Map; in main()
81 typedef test_allocator<ValueTp> Alloc; in main() typedef
82 typedef std::multimap<int, int, std::less<int>, Alloc> Map; in main()
88 typedef min_allocator<ValueTp> Alloc; in main() typedef
89 typedef std::multimap<int, int, std::less<int>, Alloc> Map; in main()
100 typedef test_allocator<ValueTp> Alloc; in main() typedef
101 typedef std::set<ValueTp, std::less<ValueTp>, Alloc> Set; in main()
[all …]
/external/llvm/include/llvm/ExecutionEngine/Orc/
DOrcRemoteTargetClient.h86 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateCodeSection() local
89 << SectionName << ": " << Alloc << " (" << Size in allocateCodeSection()
91 return Alloc; in allocateCodeSection()
99 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
102 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
104 return Alloc; in allocateDataSection()
108 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
111 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
113 return Alloc; in allocateDataSection()
189 for (auto &Alloc : ObjAllocs.CodeAllocs) { in notifyObjectLoaded()
[all …]
/external/dexmaker/dexmaker-mockito-inline/src/main/jni/dexmakerjvmtiagent/
Dagent.cc155 auto instruction = c.Alloc<Bytecode>(); in addInstr()
180 VRegList* param_regs = c.Alloc<VRegList>(); in addCall()
185 addInstr(c, instructionAfter, opcode, {param_regs, c.Alloc<Method>(method, in addCall()
384 Label* originalMethodLabel = c.Alloc<Label>(0); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
385 Label* returnTrueLabel = c.Alloc<Label>(0); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
386 CodeLocation* originalMethod = c.Alloc<CodeLocation>(originalMethodLabel); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
387 VReg* v0 = c.Alloc<VReg>(0); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
388 VReg* v1 = c.Alloc<VReg>(1); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
389 VReg* v2 = c.Alloc<VReg>(2); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
390 VReg* thiz = c.Alloc<VReg>(thisReg); in Java_com_android_dx_mockito_inline_ClassTransformer_nativeRedefine()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dswap_member.pass.cpp36 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
37 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
38 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
39 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
64 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
65 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
78 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
79 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
112 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
113 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
[all …]
/external/libcxx/test/std/containers/unord/
Diterator_difference_type.pass.cpp85 typedef test_allocator<ValueTp> Alloc; in main() typedef
86 typedef std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; in main()
92 typedef min_allocator<ValueTp> Alloc; in main() typedef
93 typedef std::unordered_map<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; in main()
104 typedef test_allocator<ValueTp> Alloc; in main() typedef
105 typedef std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; in main()
111 typedef min_allocator<ValueTp> Alloc; in main() typedef
112 typedef std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>, Alloc> Map; in main()
123 typedef test_allocator<ValueTp> Alloc; in main() typedef
124 typedef std::unordered_set<ValueTp, std::hash<ValueTp>, std::equal_to<ValueTp>, Alloc> Set; in main()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/Orc/
DOrcRemoteTargetClient.h79 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateCodeSection() local
82 << SectionName << ": " << Alloc << " (" << Size in allocateCodeSection()
84 return Alloc; in allocateCodeSection()
92 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
95 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
97 return Alloc; in allocateDataSection()
101 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
104 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
106 return Alloc; in allocateDataSection()
214 class Alloc {
[all …]

12345678910>>...14