/freebsd/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
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LiveIntervalCalc.cpp | 32 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, 39 LR.createDeadDef(DefIdx, Alloc); in createDeadDef() 45 VNInfo::Allocator *Alloc = getVNAlloc(); in calculate() 66 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate() 70 *Alloc, SubMask, in calculate() 71 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { 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 in constructMainRangeFromSubranges() 33 createDeadDef(SlotIndexes & Indexes,VNInfo::Allocator & Alloc,LiveRange & LR,const MachineOperand & MO) createDeadDef() argument 46 VNInfo::Allocator *Alloc = getVNAlloc(); calculate() local 113 VNInfo::Allocator *Alloc = getVNAlloc(); constructMainRangeFromSubranges() local 127 VNInfo::Allocator *Alloc = getVNAlloc(); createDeadDefs() local [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryProfileInfo.cpp | 146 if (Alloc) { in addCallStack() 148 Alloc->AllocTypes |= static_cast<uint8_t>(AllocType); in addCallStack() 149 Alloc->TotalSize += TotalSize; in addCallStack() 152 Alloc = new CallStackTrieNode(AllocType, TotalSize); in addCallStack() 154 Curr = Alloc; in addCallStack() 256 if (hasSingleAllocType(Alloc->AllocTypes)) { in buildAndAttachMIBMetadata() 257 addAllocTypeAttribute(Ctx, CI, (AllocationType)Alloc->AllocTypes); in buildAndAttachMIBMetadata() 259 assert(Alloc->TotalSize); in buildAndAttachMIBMetadata() 262 << getAllocTypeAttributeString((AllocationType)Alloc->AllocTypes) in buildAndAttachMIBMetadata() 263 << ": " << Alloc->TotalSize << "\n"; in buildAndAttachMIBMetadata() [all …]
|
/freebsd/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/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() 120 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); 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() 305 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in writeResolverBlock() 310 auto FA = Alloc->finalize(); in writeResolverBlock() [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/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/contrib/llvm-project/llvm/include/llvm/Demangle/ |
H A D | ItaniumDemangle.h | 2607 template <typename Derived, typename Alloc> struct AbstractManglingParser { 2685 Alloc ASTAllocator; 2924 template <typename Derived, typename Alloc> 2925 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { in parseName() 2960 template <typename Derived, typename Alloc> 2961 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { in parseLocalName() 3000 template <typename Derived, typename Alloc> 3002 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State, in parseUnscopedName() 3041 template <typename Derived, typename Alloc> 3042 Node *AbstractManglingParser<Derived, Alloc>::parseUnqualifiedName( in parseUnqualifiedName() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_segmented_array.h | 163 AllocatorType *Alloc; variable 251 auto SegmentBlock = Alloc->Allocate(); in NewSegment() 296 : Alloc(&A), in Array() 302 Array() XRAY_NEVER_INSTRUMENT : Alloc(nullptr), in Array() 311 Array(Array &&O) XRAY_NEVER_INSTRUMENT : Alloc(O.Alloc), in Array() 316 O.Alloc = nullptr; in Array() 324 Alloc = O.Alloc; 325 O.Alloc = nullptr; 345 DCHECK_NE(Alloc, nullptr); in allocator() 346 return *Alloc; in allocator()
|
/freebsd/contrib/llvm-project/libcxx/include/ |
H A D | memory | 24 template <class T, class Alloc> struct uses_allocator; 53 template <class Alloc> 56 typedef Alloc allocator_type; 60 typedef Alloc::pointer | value_type* pointer; 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 76 typedef Alloc::propagate_on_container_copy_assignment [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
|
H A D | queue | 47 template <class Alloc> 48 explicit queue(const Alloc& a); 49 template <class Alloc> 50 queue(const container_type& c, const Alloc& a); 51 template <class Alloc> 52 queue(container_type&& c, const Alloc& a); 53 template <class Alloc> 54 queue(const queue& q, const Alloc& a); 55 template <class Alloc> 56 queue(queue&& q, const Alloc& a); [all …]
|
/freebsd/contrib/llvm-project/libcxx/include/ext/ |
H A D | hash_set | 21 class Alloc = allocator<Value>> 30 typedef Alloc allocator_type; 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, 99 const hash_set<Value, Hash, Pred, Alloc>& y); 101 template <class Value, class Hash, class Pred, class Alloc> 103 operator!=(const hash_set<Value, Hash, Pred, Alloc>& x, [all …]
|
H A D | hash_map | 21 class Alloc = allocator<pair<const Key, T>>> 30 typedef Alloc allocator_type; 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); 102 template <class Key, class T, class Hash, class Pred, class Alloc> 104 operator==(const hash_map<Key, T, Hash, Pred, Alloc>& x, 105 const hash_map<Key, T, Hash, Pred, Alloc>& y); 107 template <class Key, class T, class Hash, class Pred, class Alloc> 109 operator!=(const hash_map<Key, T, Hash, Pred, Alloc>& x, [all …]
|
/freebsd/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/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/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/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()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | InterpState.cpp | 45 Alloc.cleanup(); in cleanup() 90 bool NoAllocationsLeft = (Alloc.getNumAllocations() == 0); in maybeDiagnoseDanglingAllocations() 93 for (const auto &It : Alloc.allocation_sites()) { in maybeDiagnoseDanglingAllocations()
|
/freebsd/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 747 return addValue(Alloc, DIEValue(Attribute, Form, std::forward<T>(Value))); in addValue() 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 771 val = *new (Alloc) DIEValue(Attribute, Form, std::forward<T>(NewValue)); in replaceValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | Coroutines.cpp | 342 this->RetconLowering.Alloc = ContinuationId->getAllocFunction(); in buildFrom() 464 auto Alloc = RetconLowering.Alloc; in emitAlloc() local 466 Alloc->getFunctionType()->getParamType(0), in emitAlloc() 468 auto *Call = Builder.CreateCall(Alloc, Size); in emitAlloc() 469 propagateCallAttrsFromCallee(Call, Alloc); in emitAlloc() 470 addCallToCallGraph(CG, Call, Alloc); in emitAlloc()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | MemoryProfileInfo.h | 69 CallStackTrieNode *Alloc = nullptr; variable 89 ~CallStackTrie() { deleteTrieNode(Alloc); } in ~CallStackTrie() 91 bool empty() const { return Alloc == nullptr; } in empty()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Type.cpp | 297 Entry = new (C.pImpl->Alloc) IntegerType(C, NumBits); in get() 342 FT = (FunctionType *)pImpl->Alloc.Allocate( in get() 388 ST = new (Context.pImpl->Alloc) StructType(Context); in get() 459 ContainedTys = Elements.copy(getContext().pImpl->Alloc).data(); in setBody() 514 StructType *ST = new (Context.pImpl->Alloc) StructType(Context); in create() 655 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get() 705 Entry = new (pImpl->Alloc) FixedVectorType(ElementType, NumElts); in get() 727 Entry = new (pImpl->Alloc) ScalableVectorType(ElementType, MinNumElts); in get() 751 Entry = new (CImpl->Alloc) PointerType(C, AddressSpace); in get() 810 TT = (TargetExtType *)C.pImpl->Alloc.Allocate( in get()
|