Home
last modified time | relevance | path

Searched refs:Allocators (Results 1 – 6 of 6) sorted by relevance

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_profiling.cpp43 atomic_uintptr_t Allocators; member
88 uptr Allocators = 0; in getThreadLocalData() local
89 if (atomic_compare_exchange_strong(&TLD.Allocators, &Allocators, 1, in getThreadLocalData()
130 Allocators = reinterpret_cast<uptr>( in getThreadLocalData()
132 atomic_store(&TLD.Allocators, Allocators, memory_order_release); in getThreadLocalData()
135 if (Allocators == 1) in getThreadLocalData()
160 auto Allocators = atomic_exchange(&TLD.Allocators, 0, memory_order_acq_rel); in cleanupTLD() local
161 if (Allocators == in cleanupTLD()
164 reinterpret_cast<FunctionCallTrie::Allocators *>(Allocators)->~Allocators(); in cleanupTLD()
186 auto Allocators = reinterpret_cast<FunctionCallTrie::Allocators *>(A); in postCurrentThreadFCT() local
[all …]
H A Dxray_function_call_trie.h135 struct Allocators { struct
160 Allocators() = default; argument
161 Allocators(const Allocators &) = delete;
162 Allocators &operator=(const Allocators &) = delete; argument
193 explicit Allocators(uptr Max) XRAY_NEVER_INSTRUMENT { in Allocators() argument
211 Allocators(Allocators &&O) XRAY_NEVER_INSTRUMENT { in Allocators() function
240 Allocators &operator=(Allocators &&O) XRAY_NEVER_INSTRUMENT {
294 ~Allocators() XRAY_NEVER_INSTRUMENT { in ~Allocators() argument
311 Allocators A(Max); in InitAllocatorsCustom()
315 static Allocators
[all …]
H A Dxray_profile_collector.cpp61 FunctionCallTrie::Allocators::Buffers Buffers;
62 FunctionCallTrie::Allocators Allocators; member
109 FunctionCallTrie::Allocators &&A, in post()
110 FunctionCallTrie::Allocators::Buffers &&B, in post()
117 A.~Allocators(); in post()
136 A.~Allocators(); in post()
H A Dxray_profile_collector.h40 FunctionCallTrie::Allocators &&A,
41 FunctionCallTrie::Allocators::Buffers &&B, tid_t TId);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DPerThreadBumpPtrAllocator.h32 Allocators(std::make_unique<AllocatorTy[]>(NumOfAllocators)) {} in PerThreadAllocator()
45 return Allocators[getThreadIndex()].Allocate(Size, Alignment); in Allocate()
52 return Allocators[getThreadIndex()].Deallocate(Ptr, Size, Alignment); in Deallocate()
58 return Allocators[getThreadIndex()]; in getThreadLocalAllocator()
72 Allocators[Idx].Reset(); in Reset()
80 TotalMemory += Allocators[Idx].getTotalMemory(); in getTotalMemory()
90 BytesAllocated += Allocators[Idx].getBytesAllocated(); in getBytesAllocated()
98 Allocators[Idx].setRedZoneSize(NewSize); in setRedZoneSize()
105 Allocators[Idx].PrintStats(); in PrintStats()
112 std::unique_ptr<AllocatorTy[]> Allocators; variable
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntime.cpp5788 ArrayRef<std::pair<const Expr *, const Expr *>> Allocators; member in __anon90c6c1b12711::OMPUsesAllocatorsActionTy
5792 ArrayRef<std::pair<const Expr *, const Expr *>> Allocators) in OMPUsesAllocatorsActionTy() argument
5793 : Allocators(Allocators) {} in OMPUsesAllocatorsActionTy()
5797 for (const auto &AllocatorData : Allocators) { in Enter()
5805 for (const auto &AllocatorData : Allocators) { in Exit()
5819 SmallVector<std::pair<const Expr *, const Expr *>, 4> Allocators; in emitTargetOutlinedFunction() local
5825 Allocators.emplace_back(D.Allocator, D.AllocatorTraits); in emitTargetOutlinedFunction()
5828 OMPUsesAllocatorsActionTy UsesAllocatorAction(Allocators); in emitTargetOutlinedFunction()