Home
last modified time | relevance | path

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

1234567

/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/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_non_member.pass.cpp31 typedef test_allocator<int> Alloc; in main() typedef
32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
43 assert(c1.get_allocator() == Alloc(1)); in main()
52 assert(c2.get_allocator() == Alloc(2)); in main()
60 typedef test_allocator<int> Alloc; in main() typedef
61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dswap_member.pass.cpp31 typedef test_allocator<int> Alloc; in main() typedef
32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
43 assert(c1.get_allocator() == Alloc(1)); in main()
52 assert(c2.get_allocator() == Alloc(2)); in main()
60 typedef test_allocator<int> Alloc; in main() typedef
61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_non_member.pass.cpp31 typedef test_allocator<int> Alloc; in main() typedef
32 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
43 assert(c1.get_allocator() == Alloc(1)); in main()
52 assert(c2.get_allocator() == Alloc(2)); in main()
60 typedef test_allocator<int> Alloc; in main() typedef
61 typedef std::unordered_set<int, Hash, Compare, Alloc> C; in main()
74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dswap_member.pass.cpp31 typedef test_allocator<int> Alloc; in main() typedef
32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
34 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
35 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
43 assert(c1.get_allocator() == Alloc(1)); in main()
52 assert(c2.get_allocator() == Alloc(2)); in main()
60 typedef test_allocator<int> Alloc; in main() typedef
61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C; in main()
74 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
75 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/
Dswap_member.pass.cpp32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
44 assert(c1.get_allocator() == Alloc(1)); in main()
53 assert(c2.get_allocator() == Alloc(2)); in main()
61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/unord.map.swap/
Dswap_non_member.pass.cpp32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
44 assert(c1.get_allocator() == Alloc(1)); in main()
53 assert(c2.get_allocator() == Alloc(2)); in main()
61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_non_member.pass.cpp32 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
33 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
35 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
36 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
44 assert(c1.get_allocator() == Alloc(1)); in main()
53 assert(c2.get_allocator() == Alloc(2)); in main()
61 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
62 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
75 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
76 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dswap_member.pass.cpp33 typedef test_allocator<std::pair<const int, std::string> > Alloc; in main() typedef
34 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C; in main()
36 C c1(0, Hash(1), Compare(1), Alloc(1)); in main()
37 C c2(0, Hash(2), Compare(2), Alloc(2)); in main()
45 assert(c1.get_allocator() == Alloc(1)); in main()
54 assert(c2.get_allocator() == Alloc(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)); in main()
77 C c2(std::begin(a2), std::end(a2), 0, Hash(2), Compare(2), Alloc(2)); in main()
[all …]
/external/libcxx/test/support/
Dasan_testing.h19 template <typename T, typename Alloc>
20 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) in is_contiguous_container_asan_correct()
22 if ( std::is_same<Alloc, std::allocator<T> >::value && c.data() != NULL) in is_contiguous_container_asan_correct()
29 template <typename T, typename Alloc>
30 bool is_contiguous_container_asan_correct ( const std::vector<T, Alloc> &c ) in is_contiguous_container_asan_correct()
/external/clang/test/CXX/temp/temp.decls/temp.alias/
Dp2.cpp18 template<class T> struct Alloc {}; struct
19 template<class T> using Vec = vector<T, Alloc<T>>;
27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}} in process()
34 void g(TT<int, Alloc<int>>);
43 using VTest = vector<int, Alloc<int>>;
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_dense_alloc_test.cc25 typedef DenseSlabAlloc<int, 128, 128> Alloc; in TEST() typedef
26 typedef Alloc::Cache Cache; in TEST()
27 typedef Alloc::IndexT IndexT; in TEST()
30 Alloc alloc; in TEST()
37 IndexT idx = alloc.Alloc(&cache); in TEST()
/external/clang/test/CodeCompletion/
Dtemplates.cpp8 template<typename T, typename Alloc = std::allocator<T> >
9 class vector : Alloc {
14 template<typename Alloc> class vector<bool, Alloc>;
/external/clang/test/CodeGenCXX/
Dmangle-alias-template.cpp4 template<typename T> using Alloc = alloc<T>; typedef
5 template<typename T, typename A = Alloc<T>> struct vector {};
27 Alloc<int> AC; in z()
31 h<Alloc>(AC); in z()
/external/llvm/lib/CodeGen/
DLiveRangeCalc.cpp37 Alloc = VNIA; in reset()
43 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument
50 LR.createDeadDef(DefIdx, Alloc); in createDeadDef()
74 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate()
88 CommonRange = LI.createSubRangeFrom(*Alloc, Common, S); in calculate()
94 createDeadDef(*Indexes, *Alloc, *CommonRange, MO); in calculate()
99 LiveInterval::SubRange *NewRange = LI.createSubRange(*Alloc, Mask); in calculate()
101 createDeadDef(*Indexes, *Alloc, *NewRange, MO); in calculate()
108 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate()
123 LI.constructMainRangeFromSubranges(*Indexes, *Alloc); in calculate()
[all …]
/external/lzma/C/Util/Lzma/
Dmakefile.gcc9 Alloc.o \
25 Alloc.o: ../../Alloc.c
26 $(CXX) $(CFLAGS) ../../Alloc.c
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/
Dallocate_shared_no_variadics.pass.cpp69 template <class Alloc>
74 std::shared_ptr<Zero> p = std::allocate_shared<Zero>(Alloc()); in test()
80 std::shared_ptr<One> p = std::allocate_shared<One>(Alloc(), i); in test()
87 std::shared_ptr<Two> p = std::allocate_shared<Two>(Alloc(), i, bad); in test()
94 std::shared_ptr<Three> p = std::allocate_shared<Three>(Alloc(), i, bad, bad); in test()
/external/libcxx/include/experimental/
Ddynarray45 template <class Alloc>
46 dynarray(allocator_arg_t, const Alloc& a, size_type c, const Alloc& alloc);
47 template <class Alloc>
48 dynarray(allocator_arg_t, const Alloc& a, size_type c, const T& v, const Alloc& alloc);
49 template <class Alloc>
50 dynarray(allocator_arg_t, const Alloc& a, const dynarray& d, const Alloc& alloc);
51 template <class Alloc>
52 dynarray(allocator_arg_t, const Alloc& a, initializer_list<T>, const Alloc& alloc);
/external/clang/include/clang/Analysis/Support/
DBumpVector.h33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; variable
37 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} in BumpVectorContext()
42 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} in BumpVectorContext()
45 if (Alloc.getInt()) in ~BumpVectorContext()
46 delete Alloc.getPointer(); in ~BumpVectorContext()
49 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator()
/external/libcxx/test/std/utilities/memory/default.allocator/
Dallocator_pointers.pass.cpp34 template <typename Alloc>
37 typename std::allocator_traits<Alloc>::pointer vp; in test_pointer()
38 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer()
68 template <typename Alloc>
71 typename std::allocator_traits<Alloc>::void_pointer vp; in test_void_pointer()
72 typename std::allocator_traits<Alloc>::const_void_pointer cvp; in test_void_pointer()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DProgramStateTrait.h88 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) {
89 return new typename data_type::Factory(Alloc);
140 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) {
141 return new typename data_type::Factory(Alloc);
179 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) {
180 return new typename data_type::Factory(Alloc);
/external/libcxx/test/std/utilities/allocator.adaptor/allocator.adaptor.types/
Dallocator_pointers.pass.cpp35 template <typename Alloc>
38 typename std::allocator_traits<Alloc>::pointer vp; in test_pointer()
39 typename std::allocator_traits<Alloc>::const_pointer cvp; in test_pointer()
69 template <typename Alloc>
72 typename std::allocator_traits<Alloc>::void_pointer vp; in test_void_pointer()
73 typename std::allocator_traits<Alloc>::const_void_pointer cvp; in test_void_pointer()
/external/libcxx/include/ext/
Dhash_set22 class Alloc = allocator<Value>>
31 typedef Alloc allocator_type;
93 template <class Value, class Hash, class Pred, class Alloc>
94 void swap(hash_set<Value, Hash, Pred, Alloc>& x,
95 hash_set<Value, Hash, Pred, Alloc>& y);
97 template <class Value, class Hash, class Pred, class Alloc>
99 operator==(const hash_set<Value, Hash, Pred, Alloc>& x,
100 const hash_set<Value, Hash, Pred, Alloc>& y);
102 template <class Value, class Hash, class Pred, class Alloc>
104 operator!=(const hash_set<Value, Hash, Pred, Alloc>& x,
[all …]
/external/libcxx/include/
Dqueue45 template <class Alloc>
46 explicit queue(const Alloc& a);
47 template <class Alloc>
48 queue(const container_type& c, const Alloc& a);
49 template <class Alloc>
50 queue(container_type&& c, const Alloc& a);
51 template <class Alloc>
52 queue(const queue& q, const Alloc& a);
53 template <class Alloc>
54 queue(queue&& q, const Alloc& a);
[all …]
Dstack45 template <class Alloc> explicit stack(const Alloc& a);
46 template <class Alloc> stack(const container_type& c, const Alloc& a);
47 template <class Alloc> stack(container_type&& c, const Alloc& a);
48 template <class Alloc> stack(const stack& c, const Alloc& a);
49 template <class Alloc> stack(stack&& c, const Alloc& a);

1234567