Home
last modified time | relevance | path

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

123

/NextBSD/contrib/libstdc++/include/ext/pb_ds/detail/
Dcontainer_base_dispatch.hpp114 typename Policy_Tl, typename Alloc>
117 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
119 Policy_Tl, Alloc>
128 typedef lu_map_data_<Key, Mapped, at0t, Alloc, at1t> type;
131 template<typename Key, typename Policy_Tl, typename Alloc>
133 Policy_Tl, Alloc>
142 typedef lu_map_no_data_<Key, null_mapped_type, at0t, Alloc, at1t> type;
145 template<typename Key, typename Mapped, typename Policy_Tl, typename Alloc>
146 struct container_base_dispatch<Key, Mapped, pat_trie_tag, Policy_Tl, Alloc>
153 typedef pat_trie_data_<Key, Mapped, at1t, Alloc> type;
[all …]
Dtypes_traits.hpp58 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
61 typedef value_type_base<Key, Mapped, Alloc, Store_Extra> type;
64 template<typename Key, typename Mapped, typename Alloc, bool Store_Extra>
66 : public vt_base_selector<Key, Mapped, Alloc, Store_Extra>::type
68 typedef typename Alloc::template rebind<Key>::other key_allocator;
74 typedef typename Alloc::size_type size_type;
/NextBSD/contrib/llvm/include/llvm/Support/
HDStringSaver.h27 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument
34 BumpPtrAllocator &Alloc;
39 BumpPtrStringSaver(BumpPtrAllocator &Alloc) : StringSaver(Alloc) {} in BumpPtrStringSaver() argument
HDYAMLParser.h147 void *operator new(size_t Size, BumpPtrAllocator &Alloc,
149 return Alloc.Allocate(Size, Alignment); in throw()
152 void operator delete(void *Ptr, BumpPtrAllocator &Alloc, size_t Size) throw() { in delete() argument
153 Alloc.Deallocate(Ptr, Size); in delete()
/NextBSD/contrib/compiler-rt/lib/tsan/tests/unit/
HDtsan_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()
/NextBSD/contrib/llvm/lib/CodeGen/
HDLiveRangeCalc.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 …]
HDLiveRangeCalc.h41 VNInfo::Allocator *Alloc; variable
139 DomTree(nullptr), Alloc(nullptr) {} in LiveRangeCalc()
HDLiveIntervalUnion.cpp184 void LiveIntervalUnion::Array::init(LiveIntervalUnion::Allocator &Alloc, in init() argument
194 new(LIUs + i) LiveIntervalUnion(Alloc); in init()
/NextBSD/contrib/libc++/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);
/NextBSD/contrib/llvm/tools/clang/include/clang/Analysis/Support/
HDBumpVector.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()
/NextBSD/contrib/libc++/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);
Dtuple39 template <class Alloc>
40 tuple(allocator_arg_t, const Alloc& a);
41 template <class Alloc>
42 tuple(allocator_arg_t, const Alloc& a, const T&...);
43 template <class Alloc, class... U>
44 tuple(allocator_arg_t, const Alloc& a, U&&...);
45 template <class Alloc>
46 tuple(allocator_arg_t, const Alloc& a, const tuple&);
47 template <class Alloc>
48 tuple(allocator_arg_t, const Alloc& a, tuple&&);
[all …]
Dunordered_set24 class Alloc = allocator<Value>>
33 typedef Alloc allocator_type;
156 template <class Value, class Hash, class Pred, class Alloc>
157 void swap(unordered_set<Value, Hash, Pred, Alloc>& x,
158 unordered_set<Value, Hash, Pred, Alloc>& y)
161 template <class Value, class Hash, class Pred, class Alloc>
163 operator==(const unordered_set<Value, Hash, Pred, Alloc>& x,
164 const unordered_set<Value, Hash, Pred, Alloc>& y);
166 template <class Value, class Hash, class Pred, class Alloc>
168 operator!=(const unordered_set<Value, Hash, Pred, Alloc>& x,
[all …]
/NextBSD/contrib/libc++/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 …]
Dhash_map22 class Alloc = allocator<pair<const Key, T>>>
31 typedef Alloc allocator_type;
96 template <class Key, class T, class Hash, class Pred, class Alloc>
97 void swap(hash_map<Key, T, Hash, Pred, Alloc>& x,
98 hash_map<Key, T, Hash, Pred, Alloc>& y);
100 template <class Key, class T, class Hash, class Pred, class Alloc>
102 operator==(const hash_map<Key, T, Hash, Pred, Alloc>& x,
103 const hash_map<Key, T, Hash, Pred, Alloc>& y);
105 template <class Key, class T, class Hash, class Pred, class Alloc>
107 operator!=(const hash_map<Key, T, Hash, Pred, Alloc>& x,
[all …]
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDProgramStateTrait.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);
HDBasicValueFactory.h82 BasicValueFactory(ASTContext &ctx, llvm::BumpPtrAllocator &Alloc) in BasicValueFactory() argument
83 : Ctx(ctx), BPAlloc(Alloc), PersistentSVals(nullptr), in BasicValueFactory()
84 PersistentSValPairs(nullptr), SValListFactory(Alloc) {} in BasicValueFactory()
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDDIE.h605 iterator insert(BumpPtrAllocator &Alloc, DIEValue V) { in insert() argument
606 List.push_back(*new (Alloc) Node(V)); in insert()
610 iterator emplace(BumpPtrAllocator &Alloc, Ts &&... Args) { in emplace() argument
611 return insert(Alloc, DIEValue(std::forward<Ts>(Args)...)); in emplace()
657 static DIE *get(BumpPtrAllocator &Alloc, dwarf::Tag Tag) { in get() argument
658 return new (Alloc) DIE(Tag); in get()
716 value_iterator addValue(BumpPtrAllocator &Alloc, DIEValue Value) { in addValue() argument
717 return Values.insert(Alloc, Value); in addValue()
720 value_iterator addValue(BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, in addValue() argument
722 return Values.emplace(Alloc, Attribute, Form, std::forward<T>(Value)); in addValue()
/NextBSD/contrib/compiler-rt/lib/sanitizer_common/
HDsanitizer_flag_parser.cc23 LowLevelAllocator FlagParser::Alloc; member in __sanitizer::FlagParser
53 char *s2 = (char*)Alloc.Allocate(len + 1); in ll_strndup()
150 flags_ = (Flag *)Alloc.Allocate(sizeof(Flag) * kMaxFlags); in FlagParser()
HDsanitizer_flag_parser.h98 static LowLevelAllocator Alloc; variable
113 FlagHandler<T> *fh = new (FlagParser::Alloc) FlagHandler<T>(var); // NOLINT in RegisterFlag()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDBlockCounter.cpp65 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { in Factory() argument
66 F = new CountMap::Factory(Alloc); in Factory()
/NextBSD/contrib/compiler-rt/lib/tsan/rtl/
HDtsan_clock.cc317 tab_idx_ = ctx->clock_alloc.Alloc(c); in Resize()
325 tab_idx_ = ctx->clock_alloc.Alloc(c); in Resize()
331 tab_idx_ = ctx->clock_alloc.Alloc(c); in Resize()
340 u32 idx = ctx->clock_alloc.Alloc(c); in Resize()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGDecl.cpp964 llvm::AllocaInst *Alloc = CreateTempAlloca(LTy); in EmitAutoVarAlloca() local
965 Alloc->setName(D.getName()); in EmitAutoVarAlloca()
971 Alloc->setAlignment(allocaAlignment.getQuantity()); in EmitAutoVarAlloca()
972 DeclPtr = Alloc; in EmitAutoVarAlloca()
978 emission.SizeForLifetimeMarkers = EmitLifetimeStart(size, Alloc); in EmitAutoVarAlloca()
1677 llvm::AllocaInst *Alloc = CreateTempAlloca(ConvertTypeForMem(Ty), in EmitParmDecl() local
1679 Alloc->setAlignment(getContext().getDeclAlign(&D).getQuantity()); in EmitParmDecl()
1680 LValue lv = MakeAddrLValue(Alloc, Ty, getContext().getDeclAlign(&D)); in EmitParmDecl()
1682 LocalAddr = Builder.CreateLoad(Alloc); in EmitParmDecl()
1720 llvm::AllocaInst *Alloc = CreateTempAlloca(ConvertTypeForMem(Ty), in EmitParmDecl() local
[all …]
/NextBSD/contrib/llvm/lib/LibDriver/
HDLibDriver.cpp104 BumpPtrAllocator Alloc; in libDriverMain() local
105 BumpPtrStringSaver Saver(Alloc); in libDriverMain()

123