Home
last modified time | relevance | path

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

12345678

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAllocatorBase.h110 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 DStringSaver.h23 BumpPtrAllocator &Alloc; variable
26 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument
28 BumpPtrAllocator &getAllocator() const { return Alloc; } in getAllocator()
50 UniqueStringSaver(BumpPtrAllocator &Alloc) : Strings(Alloc) {} in UniqueStringSaver() argument
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveIntervalCalc.cpp31 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument
38 LR.createDeadDef(DefIdx, Alloc); in createDeadDef()
44 VNInfo::Allocator *Alloc = getVNAlloc(); in calculate() local
65 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate()
69 *Alloc, SubMask, in calculate()
70 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { in calculate()
72 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate()
80 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate()
94 SubLIC.reset(MF, Indexes, DomTree, Alloc); in calculate()
111 VNInfo::Allocator *Alloc = getVNAlloc(); in constructMainRangeFromSubranges() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DMemProfSummaryBuilder.cpp55 for (auto &Alloc : Record.AllocSites) in addRecord() local
56 addRecord(Alloc.CSId, Alloc.Info); in addRecord()
60 for (auto &Alloc : Record.AllocSites) in addRecord() local
61 addRecord(computeFullStackId(Alloc.CallStack), Alloc.Info); in addRecord()
H A DItaniumManglingCanonicalizer.cpp209 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/Analysis/Support/
H A DBumpVector.h33 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 DEPCIndirectionUtils.cpp112 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
303 if (!Alloc) in writeResolverBlock()
304 return Alloc.takeError(); in writeResolverBlock()
306 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in writeResolverBlock()
311 auto FA = Alloc->finalize(); in writeResolverBlock()
[all …]
H A DDebugObjectManagerPlugin.cpp133 if (Alloc) { in ~DebugObject()
135 Allocs.push_back(std::move(Alloc)); in ~DebugObject()
156 FinalizedAlloc Alloc; member in llvm::orc::DebugObject
163 assert(!Alloc && "Cannot finalize more than once"); in finalizeAsync()
172 Alloc = std::move(*FA); in finalizeAsync()
334 auto Alloc = SimpleSegmentAlloc::Create( in finalizeWorkingMemory() local
337 if (!Alloc) in finalizeWorkingMemory()
338 return Alloc; in finalizeWorkingMemory()
341 auto SegInfo = Alloc->getSegInfo(MemProt::Read); in finalizeWorkingMemory()
345 return Alloc; in finalizeWorkingMemory()
H A DEPCGenericRTDyldMemoryManager.cpp297 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 DJITLinkMemoryManager.h170 allocate(JD, G, [&](AllocResult Alloc) { in allocate()
171 AllocResultP.set_value(std::move(Alloc)); in allocate()
184 void deallocate(FinalizedAlloc Alloc, OnDeallocatedFunction OnDeallocated) { in deallocate() argument
186 Allocs.push_back(std::move(Alloc)); in deallocate()
200 Error deallocate(FinalizedAlloc Alloc) { in deallocate() argument
202 Allocs.push_back(std::move(Alloc)); in deallocate()
343 Alloc->finalize(std::move(OnFinalized)); in finalize()
348 return Alloc->finalize(); in finalize()
355 std::unique_ptr<JITLinkMemoryManager::InFlightAlloc> Alloc);
359 std::unique_ptr<JITLinkMemoryManager::InFlightAlloc> Alloc; variable
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dqueue47 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 …]
H A Dstack46 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 Dmemory24 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 …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryProfileInfo.cpp133 if (Alloc) { in addCallStack()
135 Alloc->addAllocType(AllocType); in addCallStack()
138 Alloc = new CallStackTrieNode(AllocType); in addCallStack()
140 Curr = Alloc; in addCallStack()
457 collectContextSizeInfo(Alloc, ContextSizeInfo); in addSingleAllocTypeAttribute()
476 if (hasSingleAllocType(Alloc->AllocTypes)) { in buildAndAttachMIBMetadata()
477 addSingleAllocTypeAttribute(CI, (AllocationType)Alloc->AllocTypes, in buildAndAttachMIBMetadata()
488 if (Alloc->hasAllocType(AllocationType::Hot)) { in buildAndAttachMIBMetadata()
489 convertHotToNotCold(Alloc); in buildAndAttachMIBMetadata()
491 if (hasSingleAllocType(Alloc->AllocTypes)) { in buildAndAttachMIBMetadata()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h2744 template <typename Derived, typename Alloc> struct AbstractManglingParser {
2822 Alloc ASTAllocator;
3061 template <typename Derived, typename Alloc>
3062 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { in parseName()
3097 template <typename Derived, typename Alloc>
3098 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { in parseLocalName()
3137 template <typename Derived, typename Alloc>
3139 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State, in parseUnscopedName()
3178 template <typename Derived, typename Alloc>
3179 Node *AbstractManglingParser<Derived, Alloc>::parseUnqualifiedName( in parseUnqualifiedName()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_segmented_array.h163 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 Dmemory24 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 Dstack46 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 Dqueue47 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/__cxx03/ext/
H A Dhash_set21 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 …]
/freebsd/contrib/llvm-project/libcxx/include/ext/
H A Dhash_set21 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 …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DCoalescingBitVector.h56 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/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramStateTrait.h186 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/clang/lib/Analysis/FlowSensitive/
H A DArena.cpp36 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/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DSpillUtils.cpp77 auto Alloc = Shape.emitAlloc(Builder, AI->getSize(), nullptr); in lowerNonLocalAlloca() local
81 U->replaceAllUsesWith(Alloc); in lowerNonLocalAlloca()
85 Shape.emitDealloc(Builder, Alloc, nullptr); in lowerNonLocalAlloca()
94 return cast<Instruction>(Alloc); in lowerNonLocalAlloca()
485 auto Alloc = lowerNonLocalAlloca(AI, Shape, DeadInstructions); in collectSpillsAndAllocasFromInsts() local
487 for (User *U : Alloc->users()) { in collectSpillsAndAllocasFromInsts()
488 if (Checker.isDefinitionAcrossSuspend(*Alloc, U)) in collectSpillsAndAllocasFromInsts()
489 Spills[Alloc].push_back(cast<Instruction>(U)); in collectSpillsAndAllocasFromInsts()

12345678