Home
last modified time | relevance | path

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

123456

/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DEPCIndirectionUtils.cpp92 for (auto &Alloc : TrampolineBlocks) in deallocatePool() local
114 if (!Alloc) in grow()
115 return Alloc.takeError(); in grow()
129 if (auto Err = (*Alloc)->finalize()) in grow()
298 if (!Alloc) in writeResolverBlock()
299 return Alloc.takeError(); in writeResolverBlock()
306 if (auto Err = (*Alloc)->finalize()) in writeResolverBlock()
309 ResolverBlock = std::move(*Alloc); in writeResolverBlock()
368 if (!Alloc) in getIndirectStubs()
369 return Alloc.takeError(); in getIndirectStubs()
[all …]
H A DDebugObjectManagerPlugin.cpp135 if (Alloc) in ~DebugObject()
136 if (Error Err = Alloc->deallocate()) in ~DebugObject()
153 std::unique_ptr<Allocation> Alloc{nullptr}; member in llvm::orc::DebugObject
160 assert(Alloc == nullptr && "Cannot finalize more than once"); in finalizeAsync()
165 Alloc = std::move(*AllocOrErr); in finalizeAsync()
167 Alloc->finalizeAsync([this, OnFinalize](Error Err) { in finalizeAsync()
172 jitTargetAddressToPointer<void *>(Alloc->getTargetMemory(ReadOnly)), in finalizeAsync()
173 Alloc->getWorkingMemory(ReadOnly).size())); in finalizeAsync()
343 std::unique_ptr<Allocation> Alloc = std::move(*AllocOrErr); in finalizeWorkingMemory() local
344 MutableArrayRef<char> WorkingMem = Alloc->getWorkingMemory(ReadOnly); in finalizeWorkingMemory()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DLiveIntervalCalc.cpp49 LR.createDeadDef(DefIdx, Alloc); in createDeadDef()
55 VNInfo::Allocator *Alloc = getVNAlloc(); in calculate() local
76 LI.createSubRangeFrom(*Alloc, ClassMask, LI); in calculate()
80 *Alloc, SubMask, in calculate()
83 createDeadDef(*Indexes, *Alloc, SR, MO); in calculate()
91 createDeadDef(*Indexes, *Alloc, LI, MO); in calculate()
105 SubLIC.reset(MF, Indexes, DomTree, Alloc); in calculate()
122 VNInfo::Allocator *Alloc = getVNAlloc(); in constructMainRangeFromSubranges() local
126 MainRange.createDeadDef(VNI->def, *Alloc); in constructMainRangeFromSubranges()
136 VNInfo::Allocator *Alloc = getVNAlloc(); in createDeadDefs() local
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DStringSaver.h22 BumpPtrAllocator &Alloc; variable
25 StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {} in StringSaver() argument
47 UniqueStringSaver(BumpPtrAllocator &Alloc) : Strings(Alloc) {} in UniqueStringSaver() argument
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DOrcRemoteTargetClient.h84 return Alloc; in allocateCodeSection()
97 return Alloc; in allocateDataSection()
106 return Alloc; in allocateDataSection()
217 class Alloc {
222 Alloc(const Alloc &) = delete;
223 Alloc &operator=(const Alloc &) = delete;
224 Alloc(Alloc &&) = default;
225 Alloc &operator=(Alloc &&) = default;
272 for (auto &Alloc : Allocs) { in mapAllocsToRemoteAddrs()
295 for (auto &Alloc : Allocs) { in copyAndProtect()
[all …]
/freebsd-13.1/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()
48 BumpVectorContext(llvm::BumpPtrAllocator &A) : Alloc(&A, 0) {} in BumpVectorContext()
51 if (Alloc.getInt()) in ~BumpVectorContext()
52 delete Alloc.getPointer(); in ~BumpVectorContext()
55 llvm::BumpPtrAllocator &getAllocator() { return *Alloc.getPointer(); } in getAllocator()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h2394 Alloc ASTAllocator;
2562 template <typename Derived, typename Alloc>
2604 template <typename Derived, typename Alloc>
2640 template <typename Derived, typename Alloc>
2657 template <typename Derived, typename Alloc>
2688 template <typename Derived, typename Alloc>
2767 template <typename Derived, typename Alloc>
2832 template <typename Derived, typename Alloc>
3079 template <typename Derived, typename Alloc>
5709 template <typename Alloc>
[all …]
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_segmented_array.h164 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-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkGeneric.cpp132 copyBlockContentToWorkingMemory(Layout, *Alloc); in linkPhase2()
167 Alloc->finalizeAsync(std::move(Phase3Continuation)); in linkPhase2()
178 Ctx->notifyFinalized(std::move(Alloc)); in linkPhase3()
282 Alloc = std::move(*AllocOrErr); in allocateSegments()
291 << (const void *)Alloc->getWorkingMemory(Prot).data() << " -> " in allocateSegments()
292 << formatv("{0:x16}", Alloc->getTargetMemory(Prot)) << "\n"; in allocateSegments()
302 Alloc->getTargetMemory(static_cast<sys::Memory::ProtectionFlags>(Prot)); in allocateSegments()
355 const SegmentLayoutMap &Layout, JITLinkMemoryManager::Allocation &Alloc) { in copyBlockContentToWorkingMemory() argument
363 Alloc.getWorkingMemory(static_cast<sys::Memory::ProtectionFlags>(Prot)); in copyBlockContentToWorkingMemory()
427 assert(Alloc && "can not call deallocateAndBailOut before allocation"); in deallocateAndBailOut()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DCoalescingBitVector.h55 CoalescingBitVector(Allocator &Alloc) in CoalescingBitVector() argument
56 : Alloc(&Alloc), Intervals(Alloc) {} in CoalescingBitVector()
62 : Alloc(Other.Alloc), Intervals(*Other.Alloc) { in CoalescingBitVector()
444 Allocator *Alloc; variable
/freebsd-13.1/contrib/llvm-project/libcxx/include/ext/
H A Dhash_set21 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 Dhash_map21 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-13.1/contrib/llvm-project/llvm/lib/Support/
H A DItaniumManglingCanonicalizer.cpp222 auto &Alloc = P->Demangler.ASTAllocator; in addEquivalence() local
223 Alloc.setCreateNewNodes(true); in addEquivalence()
265 return std::make_pair(N, Alloc.isMostRecentlyCreated(N)); in addEquivalence()
275 Alloc.trackUsesOf(FirstNode); in addEquivalence()
284 if (FirstIsNew && !Alloc.trackedNodeIsUsed()) in addEquivalence()
285 Alloc.addRemapping(FirstNode, SecondNode); in addEquivalence()
287 Alloc.addRemapping(SecondNode, FirstNode); in addEquivalence()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramStateTrait.h183 static void *CreateContext(llvm::BumpPtrAllocator& Alloc) {
184 return new typename data_type::Factory(Alloc);
224 static void *CreateContext(llvm::BumpPtrAllocator &Alloc) {
225 return new typename data_type::Factory(Alloc);
261 static void *CreateContext(llvm::BumpPtrAllocator &Alloc) {
262 return new typename data_type::Factory(Alloc);
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A Dqueue44 template <class Alloc>
46 template <class Alloc>
48 template <class Alloc>
50 template <class Alloc>
52 template <class Alloc>
129 template <class Alloc>
131 template <class Alloc>
133 template <class Alloc>
136 template <class Alloc>
139 template <class Alloc>
[all …]
H A Dstack44 template <class Alloc> explicit stack(const Alloc& a);
45 template <class Alloc> stack(const container_type& c, const Alloc& a);
46 template <class Alloc> stack(container_type&& c, const Alloc& a);
47 template <class Alloc> stack(const stack& c, const Alloc& a);
48 template <class Alloc> stack(stack&& c, const Alloc& a);
H A Dfunctional394 template<Allocator Alloc>
395 function(allocator_arg_t, const Alloc&) noexcept; // removed in C++17
396 template<Allocator Alloc>
397 function(allocator_arg_t, const Alloc&, nullptr_t) noexcept; // removed in C++17
398 template<Allocator Alloc>
399 function(allocator_arg_t, const Alloc&, const function&); // removed in C++17
400 template<Allocator Alloc>
401 function(allocator_arg_t, const Alloc&, function&&); // removed in C++17
402 template<class F, Allocator Alloc>
417 template<class F, class Alloc>
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp294 Entry = new (C.pImpl->Alloc) IntegerType(C, NumBits); in get()
341 FT = (FunctionType *)pImpl->Alloc.Allocate( in get()
387 ST = new (Context.pImpl->Alloc) StructType(Context); in get()
425 ContainedTys = Elements.copy(getContext().pImpl->Alloc).data(); in setBody()
480 StructType *ST = new (Context.pImpl->Alloc) StructType(Context); in create()
612 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
663 Entry = new (pImpl->Alloc) FixedVectorType(ElementType, NumElts); in get()
685 Entry = new (pImpl->Alloc) ScalableVectorType(ElementType, MinNumElts); in get()
708 Entry = new (CImpl->Alloc) PointerType(EltTy, AddressSpace); in get()
722 Entry = new (CImpl->Alloc) PointerType(C, AddressSpace); in get()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp77 BumpPtrAllocator &Alloc) in Builder()
78 : Symtab(Symtab), StrtabBuilder(StrtabBuilder), Saver(Alloc) {} in Builder()
354 BumpPtrAllocator &Alloc) { in build() argument
355 return Builder(Symtab, StrtabBuilder, Alloc).build(Mods); in build()
378 BumpPtrAllocator Alloc; in upgrade() local
379 if (Error E = build(Mods, FC.Symtab, StrtabBuilder, Alloc)) in upgrade()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBlockCounter.cpp64 BlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) { in Factory() argument
65 F = new CountMap::Factory(Alloc); in Factory()
/freebsd-13.1/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp125 volatile char *volatile Alloc = in ensureStackAddressSpace() local
127 Alloc[0] = 0; in ensureStackAddressSpace()
128 Alloc[kTargetStack - Curr - 1] = 0; in ensureStackAddressSpace()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flag_parser.cpp22 LowLevelAllocator FlagParser::Alloc; member in __sanitizer::FlagParser
52 char *s2 = (char*)Alloc.Allocate(len + 1); in ll_strndup()
188 flags_ = (Flag *)Alloc.Allocate(sizeof(Flag) * kMaxFlags); in FlagParser()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroutines.cpp415 this->RetconLowering.Alloc = ContinuationId->getAllocFunction(); in buildFrom()
537 auto Alloc = RetconLowering.Alloc; in emitAlloc() local
539 Alloc->getFunctionType()->getParamType(0), in emitAlloc()
541 auto *Call = Builder.CreateCall(Alloc, Size); in emitAlloc()
542 propagateCallAttrsFromCallee(Call, Alloc); in emitAlloc()
543 addCallToCallGraph(CG, Call, Alloc); in emitAlloc()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/
H A DExpandResponseFilesCompilationDatabase.cpp62 llvm::BumpPtrAllocator Alloc; in expand() local
63 llvm::StringSaver Saver(Alloc); in expand()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCodeViewYAMLTypeHashing.cpp68 BumpPtrAllocator &Alloc) { in toDebugH() argument
70 uint8_t *Data = Alloc.Allocate<uint8_t>(Size); in toDebugH()

123456