Home
last modified time | relevance | path

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

12345678910>>...12

/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/llvm/unittests/CodeGen/
DDIEHashTest.cpp26 BumpPtrAllocator Alloc; member in __anon8ef5e2650111::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/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/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.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/
Dswap_member.pass.cpp35 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
36 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
37 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
38 C c2(0, Hash(2), Compare(2), Alloc(1, 2)); in main()
63 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
64 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
77 C c1(0, Hash(1), Compare(1), Alloc(1, 1)); in main()
78 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(1, 2)); in main()
111 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
112 typedef std::unordered_multimap<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/
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/tensorflow/tensorflow/core/lib/core/
Darena_test.cc50 char* memory = a.Alloc(100); in TEST()
55 memory = a.Alloc(100); in TEST()
62 char* byte0 = a.Alloc(1); in TEST()
78 char* memory = a.Alloc(1024); in TEST()
83 char* memory2 = a.Alloc(1024); in TEST()
94 char* memory = a.Alloc(768); in TEST()
99 char* memory2 = a.Alloc(768); in TEST()
108 char* memory = a.Alloc(10240); in TEST()
113 char* memory2 = a.Alloc(1234); in TEST()
/external/protobuf/src/google/protobuf/stubs/
Dhash.h214 typename Alloc = std::allocator< std::pair<const Key, Data> > >
215 class hash_map : public std::map<Key, Data, HashFcn, Alloc> {
216 typedef std::map<Key, Data, HashFcn, Alloc> BaseClass;
221 const Alloc& d = Alloc()) : BaseClass(b, d) {}
273 typename Alloc = std::allocator< std::pair<const Key, Data> > >
276 Key, Data, InternalHashCompare<Key, HashFcn, EqualKey>, Alloc> {
278 Key, Data, InternalHashCompare<Key, HashFcn, EqualKey>, Alloc> BaseClass;
282 const EqualKey& c = EqualKey(), const Alloc& d = Alloc())
304 typename Alloc = std::allocator< std::pair<const Key, Data> > >
307 Key, Data, HashFcn, EqualKey, Alloc> {
[all …]
/external/libcxx/test/std/experimental/filesystem/class.path/path.member/path.generic.obs/
Dgeneric_string_alloc.pass.cpp44 using Alloc = malloc_allocator<CharT>; in main() typedef
45 using Str = std::basic_string<CharT, Traits, Alloc>; in main()
50 Alloc a; in main()
51 Alloc::disable_default_constructor = true; in main()
52 Str s = p.generic_string<wchar_t, Traits, Alloc>(a); in main()
54 assert(Alloc::alloc_count > 0); in main()
55 assert(Alloc::outstanding_alloc() == 1); in main()
/external/tensorflow/tensorflow/compiler/xla/service/
Dheap_simulator_test.cc49 void Alloc(const LogicalBuffer* buffer, int64 size) override { in Alloc() function in xla::__anon34cc81400111::HeapCallRecorder
542 heap.Alloc(buffer_a_, 10); in TEST_F()
543 heap.Alloc(buffer_b_, 20); in TEST_F()
544 heap.Alloc(buffer_c_, 30); in TEST_F()
545 heap.Alloc(buffer_d_, 30); in TEST_F()
555 heap.Alloc(buffer_a_, 10); // max: A in TEST_F()
557 heap.Alloc(buffer_b_, 20); // max: A+B in TEST_F()
560 heap.Alloc(buffer_c_, 30); // max: A+C in TEST_F()
563 heap.Alloc(buffer_d_, 5); // max: A+C in TEST_F()
584 heap.Alloc(buffer_a_, 10); in TEST_F()
[all …]
/external/libbrillo/brillo/
Dvalue_conversion.h65 template <typename T, typename Pred, typename Alloc>
67 std::map<std::string, T, Pred, Alloc>* out_value);
69 template <typename T, typename Alloc>
70 bool FromValue(const base::Value& in_value, std::vector<T, Alloc>* out_value) { in FromValue()
85 template <typename T, typename Pred, typename Alloc>
87 std::map<std::string, T, Pred, Alloc>* out_value) { in FromValue()
114 template <typename T, typename Pred, typename Alloc>
116 const std::map<std::string, T, Pred, Alloc>& dictionary);
118 template <typename T, typename Alloc>
119 std::unique_ptr<base::Value> ToValue(const std::vector<T, Alloc>& list) { in ToValue()
[all …]
/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()
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()
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()
/external/libchrome/base/containers/
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>;

12345678910>>...12