Home
last modified time | relevance | path

Searched refs:ArenaAllocator (Results 1 – 25 of 27) 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 ArenaAllocator(MemoryPool& memory_pool);
59 ArenaAllocator(const ArenaAllocator<U>&);
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_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()
Dsemistatic_map.h103 std::vector<value_type, ArenaAllocator<value_type>>&& new_elements);
/external/swiftshader/third_party/subzero/src/
DIceMemory.h32 using ArenaAllocator = variable
41 LockedArenaAllocator(ArenaAllocator *Alloc, std::mutex *Mutex) in LockedArenaAllocator()
47 ArenaAllocator *operator->() { return Alloc; }
50 ArenaAllocator *Alloc;
138 using allocator_type = ArenaAllocator *;
146 static void set_current(ArenaAllocator *Allocator);
150 ICE_TLS_DECLARE_FIELD(ArenaAllocator *, CfgAllocator);
165 using allocator_type = ArenaAllocator *;
175 ICE_TLS_DECLARE_FIELD(ArenaAllocator *, LivenessAllocator);
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()
DIceLiveness.h108 ArenaAllocator *getAllocator() const { return Alloc.get(); } in getAllocator()
124 : Alloc(new ArenaAllocator()), AllocScope(this), Func(Func), Mode(Mode) {} in Liveness()
135 std::unique_ptr<ArenaAllocator> Alloc;
DIceCfg.h34 std::unique_ptr<ArenaAllocator> Allocator;
311 static ArenaAllocator *createAllocator();
DIceGlobalContext.h436 ArenaAllocator Allocator;
528 LockedPtr<ArenaAllocator> getAllocator() { in getAllocator()
529 return LockedPtr<ArenaAllocator>(&Allocator, &AllocLock); in getAllocator()
/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 …]
Dbinding_normalization.templates.h46 ArenaAllocator<ComponentStorageEntry>(memory_pool)) { in BindingNormalizationContext()
555 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>
560 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in performBindingCompression()
562 using result_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>; in performBindingCompression()
563 result_t result = result_t(ArenaAllocator<ComponentStorageEntry>(memory_pool)); in performBindingCompression()
674 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithBindingCompression()
675 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector, in normalizeBindingsWithBindingCompression()
690 multibindings_vector_t(ArenaAllocator<multibindings_vector_elem_t>(memory_pool)); in normalizeBindingsWithBindingCompression()
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,
Dnormalized_component_storage_holder.h54 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types,
/external/google-fruit/src/
Dnormalized_component_storage.cpp44 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorage()
58 …using bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>… in NormalizedComponentStorage()
59 …bindings_vector_t bindings_vector = bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory… in NormalizedComponentStorage()
70 … const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorage()
84 …using bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>… in NormalizedComponentStorage()
85 …bindings_vector_t bindings_vector = bindings_vector_t(ArenaAllocator<ComponentStorageEntry>(memory… in NormalizedComponentStorage()
Dinjector_storage.cpp69 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in InjectorStorage()
87 …using new_bindings_vector_t = std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEn… in InjectorStorage()
88 …new_bindings_vector_t new_bindings_vector = new_bindings_vector_t(ArenaAllocator<ComponentStorageE… in InjectorStorage()
Dbinding_normalization.cpp41 …const std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& entries_to_proces… in printLazyComponentInstallationLoop()
277 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithUndoableBindingCompression()
278 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector, in normalizeBindingsWithUndoableBindingCompression()
316 const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in normalizeBindingsWithPermanentBindingCompression()
317 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& bindings_vector, in normalizeBindingsWithPermanentBindingCompression()
330 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>& new_bindings_vector, in normalizeBindingsAndAddTo()
338 multibindings_vector_t(ArenaAllocator<multibindings_vector_elem_t>(memory_pool)); in normalizeBindingsAndAddTo()
Dnormalized_component_storage_holder.cpp29 ComponentStorage&& component, const std::vector<TypeId, ArenaAllocator<TypeId>>& exposed_types, in NormalizedComponentStorageHolder()
/external/google-fruit/include/fruit/impl/util/
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()
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) {
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Demangle/
DMicrosoftDemangle.cpp34 class ArenaAllocator { class
52 ArenaAllocator() { addNode(AllocUnit); } in ArenaAllocator() function in __anon4268c9490111::ArenaAllocator
54 ~ArenaAllocator() { in ~ArenaAllocator()
241 virtual Type *clone(ArenaAllocator &Arena) const;
281 Type *clone(ArenaAllocator &Arena) const override;
293 Type *clone(ArenaAllocator &Arena) const override;
305 Type *clone(ArenaAllocator &Arena) const override;
324 Type *clone(ArenaAllocator &Arena) const override;
331 Type *clone(ArenaAllocator &Arena) const override;
576 Type *Type::clone(ArenaAllocator &Arena) const { in clone()
[all …]
/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.h212 std::vector<ComponentStorageEntry, ArenaAllocator<ComponentStorageEntry>>::iterator itr;
233 …InjectorStorage(ComponentStorage&& storage, const std::vector<TypeId, ArenaAllocator<TypeId>>& exp…

12