Home
last modified time | relevance | path

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

12345678910

/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/
H A DTPCIndirectionUtils.cpp92 for (auto &Alloc : TrampolineBlocks) in deallocatePool() local
93 Err = joinErrors(std::move(Err), Alloc->deallocate()); in deallocatePool()
112 auto Alloc = TPC.getMemMgr().allocate(nullptr, Request); in grow() local
114 if (!Alloc) in grow()
115 return Alloc.takeError(); in grow()
119 auto WorkingMemory = (*Alloc)->getWorkingMemory(TrampolinePagePermissions); in grow()
120 auto TargetAddress = (*Alloc)->getTargetMemory(TrampolinePagePermissions); in grow()
125 auto TargetAddr = (*Alloc)->getTargetMemory(TrampolinePagePermissions); in grow()
129 if (auto Err = (*Alloc)->finalize()) in grow()
132 TrampolineBlocks.push_back(std::move(*Alloc)); in grow()
[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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DLiveIntervalCalc.cpp42 static void createDeadDef(SlotIndexes &Indexes, VNInfo::Allocator &Alloc, in createDeadDef() argument
49 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()
81 [&MO, Indexes, Alloc](LiveInterval::SubRange &SR) { 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
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/
H A DOrcRemoteTargetClient.h79 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateCodeSection() local
82 << SectionName << ": " << Alloc << " (" << Size in allocateCodeSection()
84 return Alloc; in allocateCodeSection()
92 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
95 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
97 return Alloc; in allocateDataSection()
101 uint8_t *Alloc = reinterpret_cast<uint8_t *>( in allocateDataSection() local
104 << SectionName << ": " << Alloc << " (" << Size in allocateDataSection()
106 return Alloc; in allocateDataSection()
217 class Alloc {
[all …]
/netbsd-src/external/apache2/llvm/dist/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
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
H A Dtsan_dense_alloc_test.cc25 typedef DenseSlabAlloc<int, 128, 128> Alloc; in TEST() typedef
26 typedef Alloc::Cache Cache; in TEST()
27 typedef Alloc::IndexT IndexT; in TEST()
30 Alloc alloc; in TEST()
37 IndexT idx = alloc.Alloc(&cache); in TEST()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Demangle/
H A DItaniumDemangle.h2339 template <typename Derived, typename Alloc> struct AbstractManglingParser {
2394 Alloc ASTAllocator;
2562 template <typename Derived, typename Alloc>
2563 Node *AbstractManglingParser<Derived, Alloc>::parseName(NameState *State) { in parseName()
2604 template <typename Derived, typename Alloc>
2605 Node *AbstractManglingParser<Derived, Alloc>::parseLocalName(NameState *State) { in parseLocalName()
2640 template <typename Derived, typename Alloc>
2642 AbstractManglingParser<Derived, Alloc>::parseUnscopedName(NameState *State) { in parseUnscopedName()
2657 template <typename Derived, typename Alloc>
2659 AbstractManglingParser<Derived, Alloc>::parseUnqualifiedName(NameState *State) { in parseUnqualifiedName()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/
H A Dxray_segmented_array.h165 AllocatorType *Alloc; variable
253 auto SegmentBlock = Alloc->Allocate(); in NewSegment()
298 : Alloc(&A), in Array()
304 Array() XRAY_NEVER_INSTRUMENT : Alloc(nullptr), in Array()
313 Array(Array &&O) XRAY_NEVER_INSTRUMENT : Alloc(O.Alloc), in Array()
318 O.Alloc = nullptr; in Array()
326 Alloc = O.Alloc;
327 O.Alloc = nullptr;
347 DCHECK_NE(Alloc, nullptr); in allocator()
348 return *Alloc; in allocator()
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/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 …]
H A Dhash_map21 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 …]
/netbsd-src/external/apache2/llvm/dist/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
/netbsd-src/external/apache2/llvm/dist/libcxx/include/
H A Dqueue44 template <class Alloc>
45 explicit queue(const Alloc& a);
46 template <class Alloc>
47 queue(const container_type& c, const Alloc& a);
48 template <class Alloc>
49 queue(container_type&& c, const Alloc& a);
50 template <class Alloc>
51 queue(const queue& q, const Alloc& a);
52 template <class Alloc>
53 queue(queue&& q, const Alloc& a);
[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);
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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);
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/stdcpp/
H A Dallocator.d217 struct allocator_traits(Alloc) in allocator_traits() argument
222 alias allocator_type = Alloc; in allocator_traits()
366 package(core.stdcpp) void __swap_allocator(Alloc)(ref Alloc __a1, ref Alloc __a2) in version()
370 static if (allocator_traits!Alloc.propagate_on_container_swap) in version()
H A Dvector.d34 extern(C++, class) struct vector(T, Alloc) in vector() argument
48 alias allocator_type = Alloc; in vector()
73 …ref vector opAssign(U)(auto ref vector!(U, Alloc) s) { opAssign(s.as_array); re… in vector()
185 ref inout(Alloc) get_allocator() inout pure nothrow @safe @nogc { return _Getal(); } in vector()
430 …ref inout(_Base.Alloc) _Getal() inout pure nothrow @safe @nogc { return _Base._Mypair._Myval… in vector()
741 _Vector_alloc!(_Vec_base_types!(T, Alloc)) _Base; in vector()
769 alias Alloc = _Alloc0; in version() local
779 alias Alloc = _Alloc_types.Alloc; in version() local
803 alias _Alproxy = Alloc.rebind!_Container_proxy; in version()
811 alias _Alproxy = Alloc.rebind!_Container_proxy; in version()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DType.cpp288 Entry = new (C.pImpl->Alloc) IntegerType(C, NumBits); in get()
335 FT = (FunctionType *)pImpl->Alloc.Allocate( in get()
381 ST = new (Context.pImpl->Alloc) StructType(Context); in get()
419 ContainedTys = Elements.copy(getContext().pImpl->Alloc).data(); in setBody()
474 StructType *ST = new (Context.pImpl->Alloc) StructType(Context); in create()
606 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
657 Entry = new (pImpl->Alloc) FixedVectorType(ElementType, NumElts); in get()
679 Entry = new (pImpl->Alloc) ScalableVectorType(ElementType, MinNumElts); in get()
698 Entry = new (CImpl->Alloc) PointerType(EltTy, AddressSpace); in get()
712 Entry = new (CImpl->Alloc) PointerType(C, AddressSpace); in get()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_flag_parser.cc21 LowLevelAllocator FlagParser::Alloc; member in __sanitizer::FlagParser
51 char *s2 = (char*)Alloc.Allocate(len + 1); in ll_strndup()
166 flags_ = (Flag *)Alloc.Allocate(sizeof(Flag) * kMaxFlags); in FlagParser()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_flag_parser.cc23 LowLevelAllocator FlagParser::Alloc; member in __sanitizer::FlagParser
53 char *s2 = (char*)Alloc.Allocate(len + 1); in ll_strndup()
168 flags_ = (Flag *)Alloc.Allocate(sizeof(Flag) * kMaxFlags); in FlagParser()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DIRSymtab.cpp77 BumpPtrAllocator &Alloc) in Builder()
78 : Symtab(Symtab), StrtabBuilder(StrtabBuilder), Saver(Alloc) {} in Builder()
353 BumpPtrAllocator &Alloc) { in build() argument
354 return Builder(Symtab, StrtabBuilder, Alloc).build(Mods); in build()
377 BumpPtrAllocator Alloc; in upgrade() local
378 if (Error E = build(Mods, FC.Symtab, StrtabBuilder, Alloc)) in upgrade()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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()
/netbsd-src/external/apache2/llvm/dist/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()

12345678910