/third_party/gn/src/base/ |
H A D | stl_util.h | 141 template <typename CharT, typename Traits, typename Allocator, typename Value> 142 void Erase(std::basic_string<CharT, Traits, Allocator>& container, in Erase() 148 template <typename CharT, typename Traits, typename Allocator, class Predicate> 149 void EraseIf(std::basic_string<CharT, Traits, Allocator>& container, in EraseIf() 155 template <class T, class Allocator, class Value> 156 void Erase(std::deque<T, Allocator>& container, const Value& value) { in Erase() 161 template <class T, class Allocator, class Predicate> 162 void EraseIf(std::deque<T, Allocator>& container, Predicate pred) { in EraseIf() 167 template <class T, class Allocator, class Value> 168 void Erase(std::vector<T, Allocator> [all...] |
/third_party/skia/third_party/externals/tint/src/ |
H A D | block_allocator_test.cc | 32 using Allocator = BlockAllocator<int>; in TEST_F() 34 Allocator allocator; in TEST_F() 42 for (int* i : static_cast<const Allocator&>(allocator).Objects()) { in TEST_F() 51 using Allocator = BlockAllocator<LifetimeCounter>; in TEST_F() 55 Allocator allocator; in TEST_F() 68 using Allocator = BlockAllocator<LifetimeCounter>; in TEST_F() 73 Allocator allocator_a; in TEST_F() 79 Allocator allocator_b{std::move(allocator_a)}; in TEST_F() 87 using Allocator = BlockAllocator<LifetimeCounter>; in TEST_F() 93 Allocator allocator_ in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | Allocator.h | 1 //===- Allocator.h - Simple memory allocation abstraction -------*- C++ -*-===// 11 /// of these conform to an LLVM "Allocator" concept which consists of an 13 /// a pointer and size. Further, the LLVM "Allocator" concept has overloads of 119 // printing code uses Allocator.h in its implementation. 153 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument 154 : Allocator(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl() 162 Allocator(std::move(Old.Allocator)) { in BumpPtrAllocatorImpl() 184 Allocator in operator =() 390 AllocatorT Allocator; global() member in llvm::BumpPtrAllocatorImpl 447 BumpPtrAllocator Allocator; global() member in llvm::SpecificBumpPtrAllocator 502 operator new(size_t Size, llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold> &Allocator) operator new() argument [all...] |
H A D | RecyclingAllocator.h | 1 //==- llvm/Support/RecyclingAllocator.h - Recycling Allocator ----*- C++ -*-==// 21 /// RecyclingAllocator - This class wraps an Allocator, adding the 32 /// Allocator - The wrapped allocator. 34 AllocatorType Allocator; member in llvm::RecyclingAllocator 37 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator() 43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() 45 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() 51 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate() 54 Allocator.PrintStats(); in PrintStats() 64 T, Size, Align> &Allocator) { in operator new() 62 operator new(size_t size, llvm::RecyclingAllocator<AllocatorType, T, Size, Align> &Allocator) operator new() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | Allocator.h | 1 //===--- Allocator.h - Simple memory allocation abstraction -----*- C++ -*-===// 12 /// of these conform to an LLVM "Allocator" concept which consists of an 14 /// a pointer and size. Further, the LLVM "Allocator" concept has overloads of 116 // printing code uses Allocator.h in its implementation. 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() 312 AllocatorT Allocator; global() member in llvm::BumpPtrAllocatorImpl 369 BumpPtrAllocator Allocator; global() member in llvm::SpecificBumpPtrAllocator 419 operator new(size_t Size, llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize, SizeThreshold> &Allocator) operator new() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | osfiber_asm.h | 65 inline OSFiber(Allocator*); 70 MARL_NO_EXPORT static inline Allocator::unique_ptr<OSFiber> 71 createFiberFromCurrentThread(Allocator* allocator); 76 MARL_NO_EXPORT static inline Allocator::unique_ptr<OSFiber> createFiber( 77 Allocator* allocator, 89 Allocator* allocator; 95 OSFiber::OSFiber(Allocator* allocator) : allocator(allocator) {} in OSFiber() 103 Allocator::unique_ptr<OSFiber> OSFiber::createFiberFromCurrentThread( in createFiberFromCurrentThread() 104 Allocator* allocator) { in createFiberFromCurrentThread() 110 Allocator [all...] |
H A D | osfiber_ucontext.h | 38 inline OSFiber(Allocator*); 43 static inline Allocator::unique_ptr<OSFiber> createFiberFromCurrentThread( 44 Allocator* allocator); 49 static inline Allocator::unique_ptr<OSFiber> createFiber( 50 Allocator* allocator, 59 Allocator* allocator; 65 OSFiber::OSFiber(Allocator* allocator) : allocator(allocator) {} in OSFiber() 73 Allocator::unique_ptr<OSFiber> OSFiber::createFiberFromCurrentThread( in createFiberFromCurrentThread() 74 Allocator* allocator) { in createFiberFromCurrentThread() 81 Allocator [all...] |
H A D | osfiber_windows.h | 32 static inline Allocator::unique_ptr<OSFiber> createFiberFromCurrentThread( 33 Allocator* allocator); 38 static inline Allocator::unique_ptr<OSFiber> createFiber( 39 Allocator* allocator, 64 Allocator::unique_ptr<OSFiber> OSFiber::createFiberFromCurrentThread( in createFiberFromCurrentThread() 65 Allocator* allocator) { in createFiberFromCurrentThread() 75 Allocator::unique_ptr<OSFiber> OSFiber::createFiber( in createFiber() 76 Allocator* allocator, in createFiber()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_memorypool.h | 66 struct Allocator { struct 69 Allocator() = default; 70 Allocator(const Allocator& other) = default; 73 Allocator(const Allocator<U>& other) {(void)other;} in Allocator() function 84 friend bool operator == (const Allocator<T>& lhs, const Allocator<T>& rhs) { in operator ==()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/MSF/ |
H A D | MappedBlockStream.h | 15 #include "llvm/Support/Allocator.h" 45 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator); 49 uint32_t StreamIndex, BumpPtrAllocator &Allocator); 53 BumpPtrAllocator &Allocator); 57 BumpPtrAllocator &Allocator); 70 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator() 80 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator); 103 BumpPtrAllocator &Allocator; 111 WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator); 115 uint32_t StreamIndex, BumpPtrAllocator &Allocator); [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | flat_hash_set.h | 100 class Allocator = std::allocator<T>> 103 absl::container_internal::FlatHashSetPolicy<T>, Hash, Eq, Allocator> { 460 template <class Allocator, class... Args> 461 static void construct(Allocator* alloc, slot_type* slot, Args&&... args) { in construct() 462 absl::allocator_traits<Allocator>::construct(*alloc, slot, in construct() 466 template <class Allocator> 467 static void destroy(Allocator* alloc, slot_type* slot) { in destroy() 468 absl::allocator_traits<Allocator>::destroy(*alloc, slot); in destroy() 471 template <class Allocator> 472 static void transfer(Allocator* allo [all...] |
H A D | flat_hash_map.h | 107 class Allocator = std::allocator<std::pair<const K, V>>> 110 Hash, Eq, Allocator> { 560 template <class Allocator, class... Args> 561 static void construct(Allocator* alloc, slot_type* slot, Args&&... args) { in construct() 565 template <class Allocator> 566 static void destroy(Allocator* alloc, slot_type* slot) { in destroy() 570 template <class Allocator> 571 static void transfer(Allocator* alloc, slot_type* new_slot, in transfer() 597 template <class Key, class T, class Hash, class KeyEqual, class Allocator> 599 absl::flat_hash_map<Key, T, Hash, KeyEqual, Allocator>> [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
H A D | memory.h | 57 // Allocation holds the result of a memory allocation from an Allocator. 63 Create, // Allocator::create(), make_unique(), make_shared() 83 // Allocator 86 // Allocator is an interface to a memory allocator. 87 // Marl provides a default implementation with Allocator::Default. 88 class Allocator { class 92 MARL_EXPORT static Allocator* Default; 95 // objects created by Allocator::create(). Deleter is used by the smart 99 MARL_NO_EXPORT inline Deleter(Allocator* allocator, size_t count); 104 Allocator* allocato [all...] |
H A D | thread.h | 76 Allocator* allocator = Allocator::Default); 84 Allocator* allocator = Allocator::Default); 88 Allocator* allocator) const = 0; 91 MARL_EXPORT Affinity(Allocator*); 95 MARL_EXPORT Affinity(const Affinity&, Allocator* allocator); 98 MARL_EXPORT static Affinity all(Allocator* allocator = Allocator::Default); 100 MARL_EXPORT Affinity(std::initializer_list<Core>, Allocator* allocato [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A 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()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/MSF/ |
H A D | MappedBlockStream.cpp | 48 BumpPtrAllocator &Allocator) in MappedBlockStream() 50 Allocator(Allocator) {} in MappedBlockStream() 54 BumpPtrAllocator &Allocator) { in createStream() 56 BlockSize, Layout, MsfData, Allocator); in createStream() 61 BumpPtrAllocator &Allocator) { in createIndexedStream() 67 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream() 73 BumpPtrAllocator &Allocator) { in createDirectoryStream() 77 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream() 83 BumpPtrAllocator &Allocator) { in createFpmStream() 45 MappedBlockStream(uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, BumpPtrAllocator &Allocator) MappedBlockStream() argument 52 createStream( uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, BumpPtrAllocator &Allocator) createStream() argument 59 createIndexedStream( const MSFLayout &Layout, BinaryStreamRef MsfData, uint32_t StreamIndex, BumpPtrAllocator &Allocator) createIndexedStream() argument 71 createDirectoryStream(const MSFLayout &Layout, BinaryStreamRef MsfData, BumpPtrAllocator &Allocator) createDirectoryStream() argument 81 createFpmStream(const MSFLayout &Layout, BinaryStreamRef MsfData, BumpPtrAllocator &Allocator) createFpmStream() argument 310 WritableMappedBlockStream( uint32_t BlockSize, const MSFStreamLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator) WritableMappedBlockStream() argument 317 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator) createStream() argument 326 createIndexedStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData, uint32_t StreamIndex, BumpPtrAllocator &Allocator) createIndexedStream() argument 338 createDirectoryStream( const MSFLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator) createDirectoryStream() argument 348 createFpmStream(const MSFLayout &Layout, WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator, bool AltFpm) createFpmStream() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | container_memory.h | 380 template <class Allocator, class... Args> 381 static void construct(Allocator* alloc, slot_type* slot, Args&&... args) { in construct() 384 absl::allocator_traits<Allocator>::construct(*alloc, &slot->mutable_value, in construct() 387 absl::allocator_traits<Allocator>::construct(*alloc, &slot->value, in construct() 393 template <class Allocator> 394 static void construct(Allocator* alloc, slot_type* slot, slot_type* other) { in construct() 397 absl::allocator_traits<Allocator>::construct( in construct() 400 absl::allocator_traits<Allocator>::construct(*alloc, &slot->value, in construct() 405 template <class Allocator> 406 static void destroy(Allocator* allo [all...] |
/third_party/node/deps/v8/src/base/ |
H A D | small-vector.h | 20 template <typename T, size_t kSize, typename Allocator = std::allocator<T>> 30 explicit SmallVector(const Allocator& allocator = Allocator()) in SmallVector() argument 32 explicit SmallVector(size_t size, const Allocator& allocator = Allocator()) in SmallVector() argument 37 const Allocator& allocator = Allocator()) V8_NOEXCEPT 42 const Allocator& allocator = Allocator()) V8_NOEXCEPT 47 const Allocator in SmallVector() 46 SmallVector(std::initializer_list<T> init, const Allocator& allocator = Allocator()) SmallVector() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
H A D | StringMap.h | 18 #include "llvm/Support/Allocator.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; member in llvm::StringMap 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() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
H A D | StringMap.h | 19 #include "llvm/Support/Allocator.h" 178 static StringMapEntry *Create(StringRef Key, AllocatorTy &Allocator, in Create() argument 188 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create() 223 void Destroy(AllocatorTy &Allocator) { in Destroy() argument 227 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy() 243 AllocatorTy Allocator; member in llvm::StringMap 254 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {} in StringMap() 258 Allocator(A) {} in StringMap() 268 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {} in StringMap() [all...] |
H A D | ScopedHashTable.h | 35 #include "llvm/Support/Allocator.h" 67 AllocatorTy &Allocator) { in Create() 68 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create() 76 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) { in Destroy() argument 79 Allocator.Deallocate(this); in Destroy() 165 AllocatorTy Allocator; member in llvm::ScopedHashTable 169 ScopedHashTable(AllocatorTy A) : Allocator(A) {} in ScopedHashTable() 178 AllocatorTy &getAllocator() { return Allocator; } in getAllocator() 179 const AllocatorTy &getAllocator() const { return Allocator; } in getAllocator() 220 Allocator); in insertIntoScope() 64 Create(ScopedHashTableVal *nextInScope, ScopedHashTableVal *nextForKey, const K &key, const V &val, AllocatorTy &Allocator) Create() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiBufferAndImageAllocationUtil.hpp | 34 class Allocator; 56 Allocator& allocator, 71 Allocator& allocator, 86 Allocator& allocator, 98 Allocator& allocator, 111 Allocator& allocator, 124 Allocator& allocator,
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiBufferAndImageAllocationUtil.hpp | 34 class Allocator; 53 Allocator& allocator, 65 Allocator& allocator, 77 Allocator& allocator, 89 Allocator& allocator, 102 Allocator& allocator, 115 Allocator& allocator,
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.hpp | 70 vk::Allocator& allocator, 75 vk::Allocator& allocator, 85 vk::Allocator& allocator, 95 vk::Allocator& allocator, 104 vk::Allocator& allocator, 123 vk::Allocator& allocator, 136 vk::Allocator& allocator, 158 vk::Allocator& allocator, 167 vk::Allocator& allocator, 176 vk::Allocator [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawImageObjectUtil.hpp | 70 vk::Allocator& allocator, 75 vk::Allocator& allocator, 85 vk::Allocator& allocator, 95 vk::Allocator& allocator, 104 vk::Allocator& allocator, 123 vk::Allocator& allocator, 136 vk::Allocator& allocator, 158 vk::Allocator& allocator, 167 vk::Allocator& allocator, 176 vk::Allocator [all...] |