| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | AllocatorBase.h | 110 template <typename Alloc> class AllocatorHolder : Alloc { 113 AllocatorHolder(const Alloc &A) : Alloc(A) {} in AllocatorHolder() 114 AllocatorHolder(Alloc &&A) : Alloc(static_cast<Alloc &&>(A)) {} in AllocatorHolder() 115 Alloc &getAllocator() { return *this; } in getAllocator() 116 const Alloc &getAllocator() const { return *this; } in getAllocator() 119 template <typename Alloc> class AllocatorHolder<Alloc &> { 120 Alloc &A; 123 AllocatorHolder(Alloc &A) : A(A) {} in AllocatorHolder() 124 Alloc &getAllocator() { return A; } in getAllocator() 125 const Alloc &getAllocator() const { return A; } in getAllocator()
|
| H A D | StringSaver.h | 22 BumpPtrAllocator &Alloc; variable 25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument 27 BumpPtrAllocator &getAllocator() const { return Alloc; } in getAllocator() 49 UniqueStringSaver(BumpPtrAllocator &Alloc) : Strings(Alloc) {} in UniqueStringSaver() argument
|
| H A D | ThreadSafeAllocator.h | 39 return applyLocked([N](AllocatorType &Alloc) { return Alloc.Allocate(N); }); in Allocate() 43 return applyLocked([Size, Align](AllocatorType &Alloc) { in Allocate() 44 return Alloc.Allocate(Size, Align); in Allocate() 52 return Fn(Alloc); in applyLocked() 56 AllocatorType Alloc;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | LiveIntervalCalc.cpp | 39 LR.createDeadDef(DefIdx, Alloc); in createDeadDef() 45 VNInfo::Allocator *Alloc = getVNAlloc(); in calculate() local 66 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate() 70 *Alloc, SubMask, in calculate() 73 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate() 81 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate() 95 SubLIC.reset(MF, Indexes, DomTree, Alloc); in calculate() 112 VNInfo::Allocator *Alloc = getVNAlloc(); in constructMainRangeFromSubranges() local 116 MainRange.createDeadDef(VNI->def, *Alloc); in constructMainRangeFromSubranges() 126 VNInfo::Allocator *Alloc = getVNAlloc(); in createDeadDefs() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/Support/ |
| H A D | BumpVector.h | 33 llvm::PointerIntPair<llvm::BumpPtrAllocator*, 1> Alloc; variable 38 BumpVectorContext() : Alloc(new llvm::BumpPtrAllocator(), 1) {} in BumpVectorContext() 40 BumpVectorContext(BumpVectorContext &&Other) : Alloc(Other.Alloc) { in BumpVectorContext() 41 Other.Alloc.setInt(false); in BumpVectorContext() 42 Other.Alloc.setPointer(nullptr); in BumpVectorContext() 57 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} in BumpVectorContext() 60 if (Alloc.getInt()) in ~BumpVectorContext() 61 delete Alloc.getPointer(); in ~BumpVectorContext() 64 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCIndirectionUtils.cpp | 112 auto Alloc = SimpleSegmentAlloc::Create( in grow() local 115 if (!Alloc) in grow() 116 return Alloc.takeError(); in grow() 126 auto FA = Alloc->finalize(); in grow() 297 auto Alloc = in writeResolverBlock() local 302 if (!Alloc) in writeResolverBlock() 303 return Alloc.takeError(); in writeResolverBlock() 310 auto FA = Alloc->finalize(); in writeResolverBlock() 370 if (!Alloc) in getIndirectStubs() 371 return Alloc.takeError(); in getIndirectStubs() [all …]
|
| H A D | DebugObjectManagerPlugin.cpp | 135 if (Alloc) { in ~DebugObject() 137 Allocs.push_back(std::move(Alloc)); in ~DebugObject() 158 FinalizedAlloc Alloc; member in llvm::orc::DebugObject 165 assert(!Alloc && "Cannot finalize more than once"); in finalizeAsync() 174 Alloc = std::move(*FA); in finalizeAsync() 336 auto Alloc = SimpleSegmentAlloc::Create( in finalizeWorkingMemory() local 338 if (!Alloc) in finalizeWorkingMemory() 339 return Alloc; in finalizeWorkingMemory() 342 auto SegInfo = Alloc->getSegInfo(MemProt::Read); in finalizeWorkingMemory() 346 return Alloc; in finalizeWorkingMemory()
|
| H A D | EPCGenericRTDyldMemoryManager.cpp | 297 for (auto &Alloc : Allocs) { in mapAllocsToRemoteAddrs() local 298 NextAddr.setValue(alignTo(NextAddr.getValue(), Alloc.Align)); in mapAllocsToRemoteAddrs() 300 dbgs() << " " << static_cast<void *>(Alloc.Contents.get()) << " -> " in mapAllocsToRemoteAddrs() 304 Alloc.Contents.get(), Align(Alloc.Align))), in mapAllocsToRemoteAddrs() 306 Alloc.RemoteAddr = NextAddr; in mapAllocsToRemoteAddrs() 310 NextAddr += ExecutorAddrDiff(Alloc.Size); in mapAllocsToRemoteAddrs()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.h | 166 allocate(JD, G, [&](AllocResult Alloc) { in allocate() 167 AllocResultP.set_value(std::move(Alloc)); in allocate() 180 void deallocate(FinalizedAlloc Alloc, OnDeallocatedFunction OnDeallocated) { in deallocate() argument 182 Allocs.push_back(std::move(Alloc)); in deallocate() 196 Error deallocate(FinalizedAlloc Alloc) { in deallocate() argument 198 Allocs.push_back(std::move(Alloc)); in deallocate() 338 Alloc->finalize(std::move(OnFinalized)); in finalize() 343 return Alloc->finalize(); in finalize() 350 std::unique_ptr<JITLinkMemoryManager::InFlightAlloc> Alloc); 354 std::unique_ptr<JITLinkMemoryManager::InFlightAlloc> Alloc; variable [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryProfileInfo.cpp | 135 if (Alloc) { in addCallStack() 137 Alloc->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack() 140 Alloc = new CallStackTrieNode(AllocType); in addCallStack() 142 Curr = Alloc; in addCallStack() 239 if (hasSingleAllocType(Alloc->AllocTypes)) { in buildAndAttachMIBMetadata() 240 addAllocTypeAttribute(Ctx, CI, (AllocationType)Alloc->AllocTypes); in buildAndAttachMIBMetadata() 246 assert(!Alloc->Callers.empty() && "addCallStack has not been called yet"); in buildAndAttachMIBMetadata() 247 buildMIBNodes(Alloc, Ctx, MIBCallStack, MIBNodes, in buildAndAttachMIBMetadata()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Demangle/ |
| H A D | ItaniumDemangle.h | 2686 Alloc ASTAllocator; 2925 template <typename Derived, typename Alloc> 2961 template <typename Derived, typename Alloc> 3001 template <typename Derived, typename Alloc> 3042 template <typename Derived, typename Alloc> 3093 template <typename Derived, typename Alloc> 3116 template <typename Derived, typename Alloc> 3213 template <typename Derived, typename Alloc> 3228 template <typename Derived, typename Alloc> 5942 template <typename Alloc> [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_segmented_array.h | 164 AllocatorType *Alloc; variable 252 auto SegmentBlock = Alloc->Allocate(); in NewSegment() 297 : Alloc(&A), in Array() 303 Array() XRAY_NEVER_INSTRUMENT : Alloc(nullptr), in Array() 312 Array(Array &&O) XRAY_NEVER_INSTRUMENT : Alloc(O.Alloc), in Array() 317 O.Alloc = nullptr; in Array() 325 Alloc = O.Alloc; 326 O.Alloc = nullptr; 346 DCHECK_NE(Alloc, nullptr); in allocator() 347 return *Alloc; in allocator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | CoalescingBitVector.h | 56 CoalescingBitVector(Allocator &Alloc) in CoalescingBitVector() argument 57 : Alloc(&Alloc), Intervals(Alloc) {} in CoalescingBitVector() 63 : Alloc(Other.Alloc), Intervals(*Other.Alloc) { in CoalescingBitVector() 445 Allocator *Alloc; variable
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ext/ |
| H A D | hash_set | 21 class Alloc = allocator<Value>> 92 template <class Value, class Hash, class Pred, class Alloc> 93 void swap(hash_set<Value, Hash, Pred, Alloc>& x, 94 hash_set<Value, Hash, Pred, Alloc>& y); 96 template <class Value, class Hash, class Pred, class Alloc> 98 operator==(const hash_set<Value, Hash, Pred, Alloc>& x, 101 template <class Value, class Hash, class Pred, class Alloc> 103 operator!=(const hash_set<Value, Hash, Pred, Alloc>& x, 107 class Alloc = allocator<Value>> 179 void swap(hash_multiset<Value, Hash, Pred, Alloc>& x, [all …]
|
| H A D | hash_map | 21 class Alloc = allocator<pair<const Key, T>>> 98 template <class Key, class T, class Hash, class Pred, class Alloc> 99 void swap(hash_map<Key, T, Hash, Pred, Alloc>& x, 100 hash_map<Key, T, Hash, Pred, Alloc>& y); 104 operator==(const hash_map<Key, T, Hash, Pred, Alloc>& x, 105 const hash_map<Key, T, Hash, Pred, Alloc>& y); 109 operator!=(const hash_map<Key, T, Hash, Pred, Alloc>& x, 110 const hash_map<Key, T, Hash, Pred, Alloc>& y); 113 class Alloc = allocator<pair<const Key, T>>> 187 void swap(hash_multimap<Key, T, Hash, Pred, Alloc>& x, [all …]
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ |
| H A D | memory | 53 template <class Alloc> 61 typedef Alloc::const_pointer 64 typedef Alloc::void_pointer 67 typedef Alloc::const_void_pointer 70 typedef Alloc::difference_type 73 typedef Alloc::size_type 82 typedef Alloc::is_always_equal 85 template <class T> using rebind_alloc = Alloc::rebind<T>::other | Alloc<T, Args...>; 869 template <class T, class Alloc> 880 template<class T, class Alloc> [all …]
|
| H A D | queue | 47 template <class Alloc> 49 template <class Alloc> 51 template <class Alloc> 53 template <class Alloc> 55 template <class Alloc> 159 template <class Alloc> 161 template <class Alloc> 163 template <class Alloc> 166 template <class Alloc> 185 template <class Alloc> [all …]
|
| H A D | stack | 46 template <class Alloc> explicit stack(const Alloc& a); 47 template <class Alloc> stack(const container_type& c, const Alloc& a); 48 template <class Alloc> stack(container_type&& c, const Alloc& a); 49 template <class Alloc> stack(const stack& c, const Alloc& a); 50 template <class Alloc> stack(stack&& c, const Alloc& a); 51 template<class InputIterator, class Alloc> 52 stack(InputIterator first, InputIterator last, const Alloc&); // since C++23 53 template<container-compatible-range<T> R, class Alloc> 54 stack(from_range_t, R&& rg, const Alloc&); // since C++23
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | ItaniumManglingCanonicalizer.cpp | 209 auto &Alloc = P->Demangler.ASTAllocator; in addEquivalence() local 210 Alloc.setCreateNewNodes(true); in addEquivalence() 252 return std::make_pair(N, Alloc.isMostRecentlyCreated(N)); in addEquivalence() 262 Alloc.trackUsesOf(FirstNode); in addEquivalence() 271 if (FirstIsNew && !Alloc.trackedNodeIsUsed()) in addEquivalence() 272 Alloc.addRemapping(FirstNode, SecondNode); in addEquivalence() 274 Alloc.addRemapping(SecondNode, FirstNode); in addEquivalence()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Arena.cpp | 36 return &Formula::create(Alloc, Formula::AtomRef, {}, in makeAtomRef() 50 return &Formula::create(Alloc, Formula::And, {&LHS, &RHS}); in makeAnd() 63 return &Formula::create(Alloc, Formula::Or, {&LHS, &RHS}); in makeOr() 74 return &Formula::create(Alloc, Formula::Not, {&Val}); in makeNot() 87 return &Formula::create(Alloc, Formula::Implies, {&LHS, &RHS}); in makeImplies() 100 return &Formula::create(Alloc, Formula::Equal, {&LHS, &RHS}); in makeEquals()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ProgramStateTrait.h | 186 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) { 187 return new typename data_type::Factory(Alloc); 227 static void *CreateContext(llvm::BumpPtrAllocator &Alloc) { 228 return new typename data_type::Factory(Alloc); 264 static void *CreateContext(llvm::BumpPtrAllocator &Alloc) { 265 return new typename data_type::Factory(Alloc);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | JITLinkMemoryManager.cpp | 193 JITLinkMemoryManager::AllocResult Alloc) mutable { in Create() argument 194 if (!Alloc) in Create() 195 OnCreated(Alloc.takeError()); in Create() 199 std::move(*Alloc))); in Create() 233 std::unique_ptr<JITLinkMemoryManager::InFlightAlloc> Alloc) in SimpleSegmentAlloc() argument 235 Alloc(std::move(Alloc)) {} in SimpleSegmentAlloc() 449 for (auto &Alloc : Allocs) { in deallocate() local 450 auto *FA = Alloc.release().toPtr<FinalizedAllocInfo *>(); in deallocate()
|
| H A D | JITLinkGeneric.cpp | 74 Alloc = std::move(*AR); in linkPhase2() 175 if (!Alloc) { in linkPhase3() 180 Alloc->finalize([S = std::move(Self)](FinalizeResult FR) mutable { in linkPhase3() 274 assert(Alloc && "can not call abandonAllocAndBailOut before allocation"); in abandonAllocAndBailOut() 275 Alloc->abandon([S = std::move(Self), E1 = std::move(Err)](Error E2) mutable { in abandonAllocAndBailOut()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | DIE.h | 143 BumpPtrAllocator &Alloc; variable 150 DIEAbbrevSet(BumpPtrAllocator &A) : Alloc(A) {} in DIEAbbrevSet() 740 value_iterator addValue(BumpPtrAllocator &Alloc, const DIEValue &V) { in addValue() argument 741 List.push_back(*new (Alloc) Node(V)); in addValue() 745 value_iterator addValue(BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, in addValue() argument 752 bool replaceValue(BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, in replaceValue() argument 757 val = *new (Alloc) in replaceValue() 767 bool replaceValue(BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, in replaceValue() argument 779 bool replaceValue(BumpPtrAllocator &Alloc, dwarf::Attribute Attribute, in replaceValue() argument 849 static DIE *get(BumpPtrAllocator &Alloc, dwarf::Tag Tag) { in get() argument [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | Arena.h | 24 : True(Formula::create(Alloc, Formula::Literal, {}, 1)), in Arena() 25 False(Formula::create(Alloc, Formula::Literal, {}, 0)) {} 127 llvm::BumpPtrAllocator Alloc;
|