/external/v8/src/ |
D | splay-tree-inl.h | 14 template<typename Config, class Allocator> 15 SplayTree<Config, Allocator>::~SplayTree() { in ~SplayTree() 21 template<typename Config, class Allocator> 22 bool SplayTree<Config, Allocator>::Insert(const Key& key, in Insert() 46 template<typename Config, class Allocator> 47 void SplayTree<Config, Allocator>::InsertInternal(int cmp, Node* node) { in InsertInternal() 61 template<typename Config, class Allocator> 62 bool SplayTree<Config, Allocator>::FindInternal(const Key& key) { in FindInternal() 70 template<typename Config, class Allocator> 71 bool SplayTree<Config, Allocator>::Contains(const Key& key) { in Contains() [all …]
|
/external/libchrome/base/ |
D | stl_util.h | 161 template <typename CharT, typename Traits, typename Allocator, typename Value> 162 void Erase(std::basic_string<CharT, Traits, Allocator>& container, in Erase() 168 template <typename CharT, typename Traits, typename Allocator, class Predicate> 169 void EraseIf(std::basic_string<CharT, Traits, Allocator>& container, in EraseIf() 175 template <class T, class Allocator, class Value> 176 void Erase(std::deque<T, Allocator>& container, const Value& value) { in Erase() 181 template <class T, class Allocator, class Predicate> 182 void EraseIf(std::deque<T, Allocator>& container, Predicate pred) { in EraseIf() 187 template <class T, class Allocator, class Value> 188 void Erase(std::vector<T, Allocator>& container, const Value& value) { in Erase() [all …]
|
/external/llvm/include/llvm/Support/ |
D | Allocator.h | 145 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {} in BumpPtrAllocatorImpl() 147 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument 149 Allocator(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl() 157 Allocator(std::move(Old.Allocator)) { in BumpPtrAllocatorImpl() 178 Allocator = std::move(RHS.Allocator); 234 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() 309 AllocatorT Allocator; variable 324 void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0); in StartNewSlab() 340 Allocator.Deallocate(*I, AllocatedSlabSize); in DeallocateSlabs() 349 Allocator.Deallocate(Ptr, Size); in DeallocateCustomSizedSlabs() [all …]
|
D | RecyclingAllocator.h | 35 AllocatorType Allocator; variable 38 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator() 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() 52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate() 55 Allocator.PrintStats(); in PrintStats() 65 T, Size, Align> &Allocator) { in new() argument 67 return Allocator.Allocate(); in new()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Allocator.h | 148 : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {} in BumpPtrAllocatorImpl() 150 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument 152 Allocator(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl() 160 Allocator(std::move(Old.Allocator)) { in BumpPtrAllocatorImpl() 181 Allocator = std::move(RHS.Allocator); 237 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() 312 AllocatorT Allocator; variable 327 void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0); in StartNewSlab() 343 Allocator.Deallocate(*I, AllocatedSlabSize); in DeallocateSlabs() 352 Allocator.Deallocate(Ptr, Size); in DeallocateCustomSizedSlabs() [all …]
|
/external/clang/include/clang/Basic/ |
D | PartialDiagnostic.h | 123 StorageAllocator *Allocator; variable 130 if (Allocator) in getStorage() 131 DiagStorage = Allocator->Allocate(); in getStorage() 133 assert(Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))); in getStorage() 153 if (Allocator) in freeStorageSlow() 154 Allocator->Deallocate(DiagStorage); in freeStorageSlow() 155 else if (Allocator != reinterpret_cast<StorageAllocator *>(~uintptr_t(0))) in freeStorageSlow() 182 : DiagID(0), DiagStorage(nullptr), Allocator(nullptr) { } in PartialDiagnostic() 184 PartialDiagnostic(unsigned DiagID, StorageAllocator &Allocator) in PartialDiagnostic() argument 185 : DiagID(DiagID), DiagStorage(nullptr), Allocator(&Allocator) { } in PartialDiagnostic() [all …]
|
/external/libcxx/test/std/containers/sequences/deque/deque.cons/ |
D | size.pass.cpp | 23 template <class T, class Allocator> 28 typedef std::deque<T, Allocator> C; in test2() 32 C d(n, Allocator()); in test2() 45 template <class T, class Allocator> 49 typedef std::deque<T, Allocator> C; in test1() 65 template <class T, class Allocator> 67 test3(unsigned n, Allocator const &alloc = Allocator()) in test3() 70 typedef std::deque<T, Allocator> C; in test3() 82 template <class T, class Allocator> 86 test1<T, Allocator> ( n ); in test() [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/gpu/ |
D | process_state.h | 33 class Allocator; variable 77 Allocator* GetCPUAllocator(int numa_node); 94 virtual Allocator* GetGPUAllocator(const GPUOptions& options, 97 virtual Allocator* GetCUDAHostAllocator(int numa_node); 122 std::vector<Allocator*> cpu_allocators_ GUARDED_BY(mu_); 125 std::vector<Allocator*> cuda_host_allocators_ GUARDED_BY(mu_); 132 std::vector<Allocator*> cpu_al_ GUARDED_BY(mu_); 133 std::vector<Allocator*> gpu_al_ GUARDED_BY(mu_); 134 std::vector<Allocator*> cuda_al_ GUARDED_BY(mu_); 138 class RecordingAllocator : public Allocator { [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | Allocator.h | 77 MallocAllocator Allocator; 80 MallocSlabAllocator() : Allocator() { } 105 SlabAllocator &Allocator; 190 BumpPtrAllocator Allocator; 194 : Allocator(size, threshold, allocator) {} 204 MemSlab *Slab = Allocator.CurSlab; 206 char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr : 209 Ptr = Allocator.AlignPtr(Ptr, alignOf<T>()); 215 Allocator.Reset(); 220 return Allocator.Allocate<T>(num); [all …]
|
D | RecyclingAllocator.h | 35 AllocatorType Allocator; variable 38 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator() 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() 52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate() 62 T, Size, Align> &Allocator) { in new() argument 63 return Allocator.Allocate(); in new()
|
D | TargetRegistry.h | 806 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); in RegisterMCAsmInfo() 809 static MCAsmInfo *Allocator(const Target &T, StringRef TT) { in Allocator() function 840 TargetRegistry::RegisterMCCodeGenInfo(T, &Allocator); in RegisterMCCodeGenInfo() 843 static MCCodeGenInfo *Allocator(StringRef TT, in Allocator() function 874 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); in RegisterMCInstrInfo() 877 static MCInstrInfo *Allocator() { in Allocator() function 907 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); in RegisterMCInstrAnalysis() 910 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function 940 TargetRegistry::RegisterMCRegInfo(T, &Allocator); in RegisterMCRegInfo() 943 static MCRegisterInfo *Allocator(StringRef TT) { in Allocator() function [all …]
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 89 template <class Allocator> 91 Allocator *a = new Allocator; in TestSizeClassAllocator() 93 SizeClassAllocatorLocalCache<Allocator> cache; in TestSizeClassAllocator() 112 uptr class_id0 = Allocator::SizeClassMapT::ClassID(size); in TestSizeClassAllocator() 125 CHECK_EQ(class_id, Allocator::SizeClassMapT::ClassID(size)); in TestSizeClassAllocator() 170 template <class Allocator> 172 Allocator *a = new Allocator; in SizeClassAllocatorMetadataStress() 174 SizeClassAllocatorLocalCache<Allocator> cache; in SizeClassAllocatorMetadataStress() 213 template <class Allocator> 215 Allocator *a = new Allocator; in SizeClassAllocatorGetBlockBeginStress() [all …]
|
/external/libcxx/test/std/containers/sequences/vector/ |
D | types.pass.cpp | 42 template <class T, class Allocator> 46 typedef std::vector<T, Allocator> C; in test() 52 … static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), ""); in test() 53 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), ""); in test() 54 static_assert((std::is_same<typename C::size_type, typename Allocator::size_type>::value), ""); in test() 55 …static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::val… in test() 56 static_assert((std::is_same<typename C::reference, typename Allocator::reference>::value), ""); in test() 57 …static_assert((std::is_same<typename C::const_reference, typename Allocator::const_reference>::val… in test() 58 static_assert((std::is_same<typename C::pointer, typename Allocator::pointer>::value), ""); in test() 59 …static_assert((std::is_same<typename C::const_pointer, typename Allocator::const_pointer>::value),… in test()
|
/external/llvm/unittests/Support/ |
D | ArrayRecyclerTest.cpp | 52 BumpPtrAllocator Allocator; in TEST() local 56 Object *A1 = DUT.allocate(Cap, Allocator); in TEST() 60 Object *A2 = DUT.allocate(Cap, Allocator); in TEST() 64 Object *A3 = DUT.allocate(Cap, Allocator); in TEST() 84 Object *A2x = DUT.allocate(Cap, Allocator); in TEST() 93 Object *A3x = DUT.allocate(Cap, Allocator); in TEST() 95 Object *A1x = DUT.allocate(Cap, Allocator); in TEST() 97 Object *A2y = DUT.allocate(Cap, Allocator); in TEST() 101 Object *A4 = DUT.allocate(Cap, Allocator); in TEST() 106 DUT.clear(Allocator); in TEST()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceMemory.cpp | 32 ArenaAllocator *Allocator = in set_current() local 33 Manager == nullptr ? nullptr : Manager->Allocator.get(); in set_current() 34 set_current(Allocator); in set_current() 37 void CfgAllocatorTraits::set_current(ArenaAllocator *Allocator) { in set_current() argument 38 ICE_TLS_SET_FIELD(CfgAllocator, Allocator); in set_current() 53 ArenaAllocator *Allocator = in set_current() local 55 ICE_TLS_SET_FIELD(LivenessAllocator, Allocator); in set_current()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | StringMap.h | 158 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator, in Create() argument 169 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 203 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 208 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy() 224 AllocatorTy Allocator; variable 234 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 238 Allocator(A) {} in StringMap() 248 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {} in StringMap() 252 std::swap(Allocator, RHS.Allocator); 258 Allocator(RHS.Allocator) { in StringMap() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringMap.h | 152 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator, in Create() argument 163 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 197 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 202 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy() 218 AllocatorTy Allocator; variable 228 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 232 Allocator(A) {} in StringMap() 242 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {} in StringMap() 246 std::swap(Allocator, RHS.Allocator); 252 Allocator(RHS.Allocator) { in StringMap() [all …]
|
D | ScopedHashTable.h | 64 AllocatorTy &Allocator) { in Create() argument 65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create() 73 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) { in Destroy() argument 76 Allocator.Deallocate(this); in Destroy() 157 AllocatorTy Allocator; variable 165 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {} in ScopedHashTable() 171 AllocatorTy &getAllocator() { return Allocator; } in getAllocator() 172 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator() 213 Allocator); in insertIntoScope() 220 template <typename K, typename V, typename KInfo, typename Allocator> [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | ScopedHashTable.h | 64 AllocatorTy &Allocator) { in Create() argument 65 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create() 74 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 77 Allocator.Deallocate(this); in Destroy() 156 AllocatorTy Allocator; variable 163 ScopedHashTable(AllocatorTy A) : CurScope(0), Allocator(A) {} in ScopedHashTable() 172 AllocatorRefTy getAllocator() { return Allocator; } in getAllocator() 173 AllocatorCRefTy getAllocator() const { return Allocator; } in getAllocator() 213 Allocator); in insertIntoScope() 220 template <typename K, typename V, typename KInfo, typename Allocator> [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | allocator.h | 68 class Allocator { 78 virtual ~Allocator(); 252 inline void Allocator::RunCtor(string* p, size_t n) { in RunCtor() 257 inline void Allocator::RunDtor(string* p, size_t n) { in RunDtor() 262 inline void Allocator::RunCtor(ResourceHandle* p, size_t n) { in RunCtor() 267 inline void Allocator::RunDtor(ResourceHandle* p, size_t n) { in RunDtor() 272 inline void Allocator::RunCtor(Variant* p, size_t n) { in RunCtor() 277 inline void Allocator::RunDtor(Variant* p, size_t n) { in RunDtor() 285 class AllocatorWrapper : public Allocator { 287 explicit AllocatorWrapper(Allocator* wrapped) : wrapped_(wrapped) {} in AllocatorWrapper() [all …]
|
D | allocator_registry.h | 32 void Register(const string& name, int priority, Allocator* allocator); 36 Allocator* GetAllocator(); 45 Allocator* allocator; // not owned 50 Allocator* GetRegisteredAllocator(const string& name, int priority); 53 Allocator* m_curr_allocator_; // not owned 61 Allocator* allocator) { in AllocatorRegistration()
|
/external/libcxx/test/std/containers/sequences/deque/ |
D | types.pass.cpp | 40 template <class T, class Allocator> 44 typedef std::deque<T, Allocator> C; in test() 47 … static_assert((std::is_same<typename C::value_type, typename Allocator::value_type>::value), ""); in test() 48 static_assert((std::is_same<typename C::allocator_type, Allocator>::value), ""); in test() 49 static_assert((std::is_same<typename C::size_type, typename Allocator::size_type>::value), ""); in test() 50 …static_assert((std::is_same<typename C::difference_type, typename Allocator::difference_type>::val… in test() 51 static_assert((std::is_same<typename C::reference, typename Allocator::reference>::value), ""); in test() 52 …static_assert((std::is_same<typename C::const_reference, typename Allocator::const_reference>::val… in test() 53 static_assert((std::is_same<typename C::pointer, typename Allocator::pointer>::value), ""); in test() 54 …static_assert((std::is_same<typename C::const_pointer, typename Allocator::const_pointer>::value),… in test()
|
/external/libcxx/test/std/strings/basic.string/ |
D | types.pass.cpp | 43 template <class Traits, class Allocator> 47 typedef std::basic_string<typename Traits::char_type, Traits, Allocator> S; in test() 51 … static_assert((std::is_same<typename S::value_type, typename Allocator::value_type>::value), ""); in test() 52 static_assert((std::is_same<typename S::allocator_type, Allocator>::value), ""); in test() 53 …static_assert((std::is_same<typename S::size_type, typename std::allocator_traits<Allocator>::size… in test() 54 …td::is_same<typename S::difference_type, typename std::allocator_traits<Allocator>::difference_typ… in test() 57 …static_assert((std::is_same<typename S::pointer, typename std::allocator_traits<Allocator>::pointe… in test() 58 …static_assert((std::is_same<typename S::const_pointer, typename std::allocator_traits<Allocator>::… in test()
|
/external/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/ |
D | alloc.pass.cpp | 37 template <class T, class Allocator> 38 void check_allocator ( const dynarray<T> &dyn, const Allocator &alloc ) { in check_allocator() 43 template <class T, class Allocator> 44 void test ( const std::initializer_list<T> &vals, const Allocator &alloc ) { in test() 54 template <class T, class Allocator> 55 void test ( const T &val, const Allocator &alloc1, const Allocator &alloc2 ) { in test()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferAndImageAllocationUtil.hpp | 34 class Allocator; 53 Allocator& allocator, 65 Allocator& allocator, 77 Allocator& allocator, 89 Allocator& allocator, 101 Allocator& allocator, 113 Allocator& allocator,
|