Home
last modified time | relevance | path

Searched refs:ArenaAllocator (Results 1 – 25 of 30) sorted by relevance

12

/external/google-fruit/include/fruit/impl/data_structures/
Darena_allocator.h31 class ArenaAllocator {
36 friend class ArenaAllocator; variable
39 friend bool operator==(const ArenaAllocator<U>& x, const ArenaAllocator<V>& y);
42 friend bool operator!=(const ArenaAllocator<U>& x, const ArenaAllocator<V>& y);
49 using other = ArenaAllocator<U>;
56 explicit ArenaAllocator(MemoryPool& memory_pool);
59 ArenaAllocator(const ArenaAllocator<U>&); // NOLINT(google-explicit-constructor)
66 bool operator==(const ArenaAllocator<T>&, const ArenaAllocator<U>&);
69 bool operator!=(const ArenaAllocator<T>&, const ArenaAllocator<U>&);
Darena_allocator.defn.h26 inline ArenaAllocator<T>::ArenaAllocator(MemoryPool& memory_pool) : pool(&memory_pool) {} in ArenaAllocator() function
30 inline ArenaAllocator<T>::ArenaAllocator(const ArenaAllocator<U>& other) : pool(other.pool) {} in ArenaAllocator() function
33 inline T* ArenaAllocator<T>::allocate(std::size_t n) { in allocate()
38 void ArenaAllocator<T>::deallocate(T*, std::size_t) { in deallocate()
43 bool operator==(const ArenaAllocator<T>& x, const ArenaAllocator<U>& y) {
48 bool operator!=(const ArenaAllocator<T>& x, const ArenaAllocator<U>& y) {
Dsemistatic_map.templates.h48 …FixedSizeVector<Unsigned, ArenaAllocator<Unsigned>> count(num_buckets, 0, ArenaAllocator<Unsigned>… in SemistaticMap()
97 … std::vector<value_type, ArenaAllocator<value_type>>&& new_elements) in SemistaticMap()
Dsemistatic_map.h105 std::vector<value_type, ArenaAllocator<value_type>>&& new_elements);
Dsemistatic_graph.templates.h153 using node_ids_t = std::vector<node_ids_elem_t, ArenaAllocator<node_ids_elem_t>>; in SemistaticGraph()
154 node_ids_t node_ids = node_ids_t(ArenaAllocator<node_ids_elem_t>(memory_pool)); in SemistaticGraph()
/external/swiftshader/third_party/subzero/src/
DIceMemory.cpp25 ICE_TLS_DEFINE_FIELD(ArenaAllocator *, CfgAllocatorTraits, CfgAllocator);
32 ArenaAllocator *Allocator = in set_current()
37 void CfgAllocatorTraits::set_current(ArenaAllocator *Allocator) { in set_current()
45 ICE_TLS_DEFINE_FIELD(ArenaAllocator *, LivenessAllocatorTraits,
53 ArenaAllocator *Allocator = in set_current()
DIceMemory.h32 using ArenaAllocator = variable
41 LockedArenaAllocator(ArenaAllocator *Alloc, std::mutex *Mutex) in LockedArenaAllocator()
47 ArenaAllocator *operator->() { return Alloc; }
50 ArenaAllocator *Alloc;
137 using allocator_type = ArenaAllocator *;
145 static void set_current(ArenaAllocator *Allocator);
149 ICE_TLS_DECLARE_FIELD(ArenaAllocator *, CfgAllocator);
164 using allocator_type = ArenaAllocator *;
174 ICE_TLS_DECLARE_FIELD(ArenaAllocator *, LivenessAllocator);
DIceLiveness.h108 ArenaAllocator *getAllocator() const { return Alloc.get(); } in getAllocator()
125 : Alloc(new ArenaAllocator()), AllocScope(this), Func(Func), Mode(Mode) {} in Liveness()
136 std::unique_ptr<ArenaAllocator> Alloc;
DIceCfg.h34 std::unique_ptr<ArenaAllocator> Allocator;
298 static ArenaAllocator *createAllocator();
/external/google-fruit/include/fruit/impl/normalized_component_storage/
Dbinding_normalization.h64 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types,
65 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector,
78 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types,
79 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector,
91 … std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& new_bindings_vector,
96 …using multibindings_vector_t = std::vector<multibindings_vector_elem_t, ArenaAllocator<multibindin…
108 …const std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& entries_to_proces…
141 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types,
142 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector,
159 static std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>
[all …]
Dnormalized_component_storage.h148 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, MemoryPool& memory_pool,
155 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, MemoryPool& memory_pool,
Dbinding_normalization.templates.h44 ArenaAllocator<ComponentStorageEntry>(memory_pool)) { in BindingNormalizationContext()
553 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>
558 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in performBindingCompression()
560 using result_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>; in performBindingCompression()
561 result_t result = result_t(ArenaAllocator<ComponentStorageEntry>(memory_pool)); in performBindingCompression()
672 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithBindingCompression()
673 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector, in normalizeBindingsWithBindingCompression()
688 multibindings_vector_t(ArenaAllocator<multibindings_vector_elem_t>(memory_pool)); in normalizeBindingsWithBindingCompression()
Dnormalized_component_storage_holder.h55 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types,
/external/google-fruit/src/
Dnormalized_component_storage.cpp41 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorage()
55 …using bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>… in NormalizedComponentStorage()
56 …bindings_vector_t bindings_vector = bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory… in NormalizedComponentStorage()
67 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorage()
81 …using bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>… in NormalizedComponentStorage()
82 …bindings_vector_t bindings_vector = bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory… in NormalizedComponentStorage()
Dinjector_storage.cpp67 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in InjectorStorage()
85 …using new_bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEn… in InjectorStorage()
86 …new_bindings_vector_t new_bindings_vector = new_bindings_vector_t(ArenaAllocator<ComponentStorageE… in InjectorStorage()
Dbinding_normalization.cpp39 …const std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& entries_to_proces… in printLazyComponentInstallationLoop()
275 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithUndoableBindingCompression()
276 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector, in normalizeBindingsWithUndoableBindingCompression()
314 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithPermanentBindingCompression()
315 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector, in normalizeBindingsWithPermanentBindingCompression()
328 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& new_bindings_vector, in normalizeBindingsAndAddTo()
336 multibindings_vector_t(ArenaAllocator<multibindings_vector_elem_t>(memory_pool)); in normalizeBindingsAndAddTo()
Dnormalized_component_storage_holder.cpp26 ComponentStorage&& component, const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorageHolder()
/external/google-fruit/include/fruit/impl/util/
Dtype_info.defn.h149 std::vector<TypeId, ArenaAllocator<TypeId>> operator()(MemoryPool& memory_pool) {
150 …return std::vector<TypeId, ArenaAllocator<TypeId>>(std::initializer_list<TypeId>{getTypeId<Ts>()..…
155 std::vector<TypeId, ArenaAllocator<TypeId>> getTypeIdsForList(MemoryPool& memory_pool) {
Dhash_helpers.h44 …HashSetWithArenaAllocator = boost::unordered_set<T, Hasher, EqualityComparator, ArenaAllocator<T>>;
52 …boost::unordered_map<Key, Value, Hasher, EqualityComparator, ArenaAllocator<std::pair<const Key, V…
59 using HashSetWithArenaAllocator = std::unordered_set<T, Hasher, EqualityComparator, ArenaAllocator<…
67 …std::unordered_map<Key, Value, Hasher, EqualityComparator, ArenaAllocator<std::pair<const Key, Val…
Dhash_helpers.defn.h38 …return HashSetWithArenaAllocator<T>(capacity, std::hash<T>(), std::equal_to<T>(), ArenaAllocator<T… in createHashSetWithArenaAllocator()
46 ArenaAllocator<T>(memory_pool)); in createHashSetWithArenaAllocatorAndCustomFunctors()
71 … capacity, hasher, equality_comparator, ArenaAllocator<std::pair<const Key, Value>>{memory_pool}); in createHashMapWithArenaAllocatorAndCustomFunctors()
/external/llvm-project/llvm/include/llvm/Demangle/
DMicrosoftDemangle.h28 class ArenaAllocator {
46 ArenaAllocator() { addNode(AllocUnit); } in ArenaAllocator() function
48 ~ArenaAllocator() { in ~ArenaAllocator()
229 VariableSymbolNode *demangleUntypedVariable(ArenaAllocator &Arena,
233 demangleRttiBaseClassDescriptorNode(ArenaAllocator &Arena,
257 ArenaAllocator Arena;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
DMicrosoftDemangle.h28 class ArenaAllocator {
46 ArenaAllocator() { addNode(AllocUnit); } in ArenaAllocator() function
48 ~ArenaAllocator() { in ~ArenaAllocator()
229 VariableSymbolNode *demangleUntypedVariable(ArenaAllocator &Arena,
233 demangleRttiBaseClassDescriptorNode(ArenaAllocator &Arena,
257 ArenaAllocator Arena;
/external/google-fruit/include/fruit/impl/component_storage/
Dcomponent_storage_entry.h193 … using entry_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>;
239 … using entry_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>;
/external/google-fruit/include/fruit/impl/
Dinjector.defn.h33 …using exposed_types_t = std::vector<fruit::impl::TypeId, fruit::impl::ArenaAllocator<fruit::impl::… in Injector()
36 fruit::impl::ArenaAllocator<fruit::impl::TypeId>(memory_pool)); in Injector()
/external/google-fruit/include/fruit/impl/injector/
Dinjector_storage.h213 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>::iterator itr;
234 …InjectorStorage(ComponentStorage&& storage, const std::vector<TypeId, ArenaAllocator<TypeId>>& exp…

12