Home
last modified time | relevance | path

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

12345678

/third_party/skia/third_party/externals/abseil-cpp/absl/memory/
Dmemory.h426 template <typename Alloc>
428 using allocator_type = Alloc;
432 using value_type = typename Alloc::value_type;
437 Alloc, value_type*>;
443 memory_internal::ExtractOrT<memory_internal::GetConstPointer, Alloc,
451 memory_internal::GetVoidPointer, Alloc,
458 memory_internal::GetConstVoidPointer, Alloc,
465 memory_internal::GetDifferenceType, Alloc,
472 memory_internal::GetSizeType, Alloc,
479 memory_internal::GetPropagateOnContainerCopyAssignment, Alloc,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/
DOrcRemoteTargetClient.h78 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateCodeSection() local
81 << SectionName << ": " << Alloc << " (" << Size in allocateCodeSection()
83 return Alloc; in allocateCodeSection()
91 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
94 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
96 return Alloc; in allocateDataSection()
100 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
103 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
105 return Alloc; in allocateDataSection()
216 class Alloc {
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dhash_policy_testing.h118 struct Alloc : std::allocator<T> { struct
122 explicit Alloc(size_t id = 0) : id_(id) {} in id_() argument
124 Alloc(const Alloc&) = default;
125 Alloc& operator=(const Alloc&) = default; argument
128 Alloc(const Alloc<U>& that) : std::allocator<T>(that), id_(that.id()) {} in Alloc() argument
132 using other = Alloc<U>; argument
137 friend bool operator==(const Alloc& a, const Alloc& b) { argument
140 friend bool operator!=(const Alloc& a, const Alloc& b) { return !(a == b); }
Dhash_policy_traits.h92 template <class Alloc, class... Args>
93 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
99 template <class Alloc>
100 static void destroy(Alloc* alloc, slot_type* slot) {
115 template <class Alloc>
116 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
190 template <class Alloc, class P = Policy>
191 static auto transfer_impl(Alloc* alloc, slot_type* new_slot,
196 template <class Alloc>
197 static void transfer_impl(Alloc* alloc, slot_type* new_slot,
Dcommon.h51 template <typename PolicyTraits, typename Alloc>
57 using allocator_type = Alloc;
117 template <typename Policy, typename PolicyTraits, typename Alloc,
119 class node_handle : public node_handle_base<PolicyTraits, Alloc> {
120 using Base = node_handle_base<PolicyTraits, Alloc>;
136 template <typename Policy, typename PolicyTraits, typename Alloc>
137 class node_handle<Policy, PolicyTraits, Alloc,
139 : public node_handle_base<PolicyTraits, Alloc> {
140 using Base = node_handle_base<PolicyTraits, Alloc>;
Dnode_hash_policy.h55 template <class Alloc, class... Args>
56 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct()
60 template <class Alloc>
61 static void destroy(Alloc* alloc, slot_type* slot) { in destroy()
65 template <class Alloc>
66 static void transfer(Alloc*, slot_type* new_slot, slot_type* old_slot) { in transfer()
Dnode_hash_policy_test.cc34 template <class Alloc>
35 static int* new_element(Alloc* alloc, int value) { in new_element()
39 template <class Alloc>
40 static void delete_element(Alloc* alloc, int* elem) { in delete_element()
Dcontainer_memory.h53 template <size_t Alignment, class Alloc>
54 void* Allocate(Alloc* alloc, size_t n) { in Allocate()
58 using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>; in Allocate()
59 using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>; in Allocate()
72 template <size_t Alignment, class Alloc>
73 void Deallocate(Alloc* alloc, void* p, size_t n) { in Deallocate()
77 using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>; in Deallocate()
78 using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>; in Deallocate()
91 template <class Alloc, class T, class Tuple, size_t... I>
92 void ConstructFromTupleImpl(Alloc* alloc, T* ptr, Tuple&& t, in ConstructFromTupleImpl()
[all …]
Dunordered_map_test.cc30 Alloc<std::pair<const int, int>>>,
33 Alloc<std::pair<const std::string, std::string>>>>;
42 Alloc<std::pair<const int, std::unique_ptr<int>>>>>;
Dcontainer_memory_test.cc90 using Alloc = std::allocator<std::string>; typedef in absl::container_internal::__anon2a5d8c220111::Fixture
93 Fixture() { ptr_ = std::allocator_traits<Alloc>::allocate(*alloc(), 1); } in Fixture()
95 std::allocator_traits<Alloc>::destroy(*alloc(), ptr_); in ~Fixture()
96 std::allocator_traits<Alloc>::deallocate(*alloc(), ptr_, 1); in ~Fixture()
99 Alloc* alloc() { return &alloc_; } in alloc()
102 Alloc alloc_;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DStringSaver.h22 BumpPtrAllocator &Alloc; variable
25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument
47 UniqueStringSaver(BumpPtrAllocator &Alloc) : Strings(Alloc) {} in UniqueStringSaver() argument
/third_party/skia/tests/
DDescriptorTest.cpp24 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
33 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
48 auto desc = SkDescriptor::Alloc(size + extra_space); in DEF_TEST()
64 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
80 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
91 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
106 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
120 auto desc = SkDescriptor::Alloc(36); in DEF_TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
DItaniumDemangle.h2290 template <typename Derived, typename Alloc> struct AbstractManglingParser {
2345 Alloc ASTAllocator;
2511 template <typename Derived, typename Alloc>
2512 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { in parseName()
2553 template <typename Derived, typename Alloc>
2554 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { in parseLocalName()
2589 template <typename Derived, typename Alloc>
2591 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State) { in parseUnscopedName()
2606 template <typename Derived, typename Alloc>
2608 AbstractManglingParser<Derived, Alloc>::parseUnqualifiedName(NameState *State) { in parseUnqualifiedName()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DStringSaver.h22 BumpPtrAllocator &Alloc; variable
25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument
/third_party/flutter/skia/tests/
DDescriptorTest.cpp23 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
33 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
49 auto desc = SkDescriptor::Alloc(size + extra_space); in DEF_TEST()
66 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
83 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
95 auto desc = SkDescriptor::Alloc(size); in DEF_TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
Dfixed_array_test.cc645 using Alloc = absl::container_internal::CountingAllocator<int>; in TEST() typedef
646 using AllocFxdArr = absl::FixedArray<int, inlined_size, Alloc>; in TEST()
654 Alloc alloc(&allocated, &active_instances); in TEST()
666 using Alloc = absl::container_internal::CountingAllocator<int>; in TEST() typedef
667 using AllocFxdArr = absl::FixedArray<int, inlined_size, Alloc>; in TEST()
674 Alloc alloc(&allocated, &active_instances); in TEST()
687 using Alloc = absl::container_internal::CountingAllocator<int>; in TEST() typedef
688 using AllocFxdArr = absl::FixedArray<int, inlined_size, Alloc>; in TEST()
693 Alloc alloc(&allocated1, &active_instances); in TEST()
694 Alloc alloc2(&allocated2, &active_instances); in TEST()
[all …]
Dnode_hash_set_test.cc33 node_hash_set<int, StatefulTestingHash, StatefulTestingEqual, Alloc<int>>,
35 Alloc<std::string>>,
36 node_hash_set<Enum, StatefulTestingHash, StatefulTestingEqual, Alloc<Enum>>,
38 Alloc<EnumClass>>>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLiveRangeCalc.cpp59 Alloc = VNIA; in reset()
64 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument
71 LR.createDeadDef(DefIdx, Alloc); in createDeadDef()
94 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate()
97 LI.refineSubRanges(*Alloc, SubMask, in calculate()
100 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate()
108 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate()
120 SubLRC.reset(MF, Indexes, DomTree, Alloc); in calculate()
140 MainRange.createDeadDef(VNI->def, *Alloc); in constructMainRangeFromSubranges()
153 createDeadDef(*Indexes, *Alloc, LR, MO); in createDeadDefs()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceBitVector.h259 Allocator Alloc; variable
308 : Size(0), Capacity(0), Alloc(std::move(A)) {
315 : Size(s), Alloc(std::move(A)) { in Size()
317 Bits = Alloc.allocate(Capacity); in Size()
324 BitVectorTmpl(const BitVectorTmpl &RHS) : Size(RHS.size()), Alloc(RHS.Alloc) { in BitVectorTmpl()
332 Bits = Alloc.allocate(Capacity); in BitVectorTmpl()
338 Alloc(std::move(RHS.Alloc)) { in BitVectorTmpl()
344 Alloc.deallocate(Bits, Capacity); in ~BitVectorTmpl()
674 BitWord *NewBits = Alloc.allocate(Capacity);
678 Alloc.deallocate(Bits, OldCapacity);
[all …]
DIceMemory.h41 LockedArenaAllocator(ArenaAllocator *Alloc, std::mutex *Mutex) in LockedArenaAllocator() argument
42 : Alloc(Alloc), AutoLock(*Mutex) {} in LockedArenaAllocator()
47 ArenaAllocator *operator->() { return Alloc; }
50 ArenaAllocator *Alloc;
/third_party/flutter/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo_libpci.cpp50 (Alloc = reinterpret_cast<decltype(Alloc)>(dlsym(mHandle, "pci_alloc"))) != nullptr && in LibPCI()
72 decltype(&::pci_alloc) Alloc = nullptr; member
95 pci_access *access = pci.Alloc(); in GetPCIDevicesWithLibPCI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DItaniumManglingCanonicalizer.cpp227 auto &Alloc = P->Demangler.ASTAllocator; in addEquivalence() local
228 Alloc.setCreateNewNodes(true); in addEquivalence()
270 return std::make_pair(N, Alloc.isMostRecentlyCreated(N)); in addEquivalence()
280 Alloc.trackUsesOf(FirstNode); in addEquivalence()
289 if (FirstIsNew && !Alloc.trackedNodeIsUsed()) in addEquivalence()
290 Alloc.addRemapping(FirstNode, SecondNode); in addEquivalence()
292 Alloc.addRemapping(SecondNode, FirstNode); in addEquivalence()
/third_party/skia/third_party/externals/angle2/src/gpu_info_util/
DSystemInfo_libpci.cpp50 (Alloc = reinterpret_cast<decltype(Alloc)>(dlsym(mHandle, "pci_alloc"))) != nullptr && in LibPCI()
74 decltype(&::pci_alloc) Alloc = nullptr; member
98 pci_access *access = pci.Alloc(); in GetPCIDevicesWithLibPCI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DJITLinkGeneric.cpp103 if (auto Err = copyAndFixUpBlocks(Layout, *Alloc)) in linkPhase2()
121 Alloc->finalizeAsync(std::move(Phase3Continuation)); in linkPhase2()
127 Ctx->notifyFinalized(std::move(Alloc)); in linkPhase3()
228 Alloc = std::move(*AllocOrErr); in allocateSegments()
237 << (const void *)Alloc->getWorkingMemory(Prot).data() << "\n"; in allocateSegments()
247 Alloc->getTargetMemory(static_cast<sys::Memory::ProtectionFlags>(Prot)); in allocateSegments()
307 assert(Alloc && "can not call deallocateAndBailOut before allocation"); in deallocateAndBailOut()
308 Ctx->notifyFailed(joinErrors(std::move(Err), Alloc->deallocate())); in deallocateAndBailOut()
/third_party/skia/src/gpu/d3d/
DGrD3DAMDMemoryAllocator.h40 class Alloc : public GrD3DAlloc {
42 Alloc(D3D12MA::Allocation* allocation) : fAllocation(allocation) {} in Alloc() function
43 ~Alloc() override { in ~Alloc()

12345678