Home
last modified time | relevance | path

Searched refs:Allocator (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dtsd_exclusive.h27 template <class Allocator> void teardownThread(void *Ptr);
29 template <class Allocator> struct TSDRegistryExT {
30 using ThisT = TSDRegistryExT<Allocator>;
43 TSD<Allocator> &operator*() { return *CurrentTSD; }
45 TSD<Allocator> *operator->() {
51 TSD<Allocator> *CurrentTSD;
55 void init(Allocator *Instance) REQUIRES(Mutex) { in init()
58 CHECK_EQ(pthread_key_create(&PThreadKey, teardownThread<Allocator>), 0); in init()
63 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe()
70 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in unmapTestOnly()
[all …]
H A Dwrappers_cpp.cpp39 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
44 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
50 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
56 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray);
61 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New, in operator delete[]()
67 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator delete[]()
74 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New, in operator delete[]()
81 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator delete()
89 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete()
93 Allocator in operator delete[]()
[all...]
H A Dtsd_shared.h27 template <class Allocator, u32 TSDsArraySize, u32 DefaultTSDCount>
29 using ThisT = TSDRegistrySharedT<Allocator, TSDsArraySize, DefaultTSDCount>;
39 TSD<Allocator> &operator*() { return *CurrentTSD; }
41 TSD<Allocator> *operator->() {
47 TSD<Allocator> *CurrentTSD;
50 void init(Allocator *Instance) REQUIRES(Mutex) { in init()
61 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe()
68 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in unmapTestOnly()
78 void drainCaches(Allocator *Instance) { in drainCaches()
87 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, in initThreadMaybe()
[all …]
H A Dwrappers_c_bionic.cpp26 #define SCUDO_ALLOCATOR Allocator
30 static scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)>
39 INTERFACE void __scudo_print_stats(void) { Allocator.printStats(); } in __scudo_print_stats()
46 Allocator.getErrorInfo(error_info, fault_addr, stack_depot, stack_depot_size, in __scudo_get_error_info()
52 return Allocator.getStackDepotAddress(); in __scudo_get_stack_depot_addr()
56 return Allocator.getStackDepotSize(); in __scudo_get_stack_depot_size()
60 return Allocator.getRegionInfoArrayAddress(); in __scudo_get_region_info_addr()
64 return Allocator.getRegionInfoArraySize(); in __scudo_get_region_info_size()
68 return Allocator.getRingBufferAddress(); in __scudo_get_ring_buffer_addr()
72 return Allocator.getRingBufferSize(); in __scudo_get_ring_buffer_size()
H A Dtsd.h27 template <class Allocator> struct alignas(SCUDO_CACHE_LINE_SIZE) TSD {
28 using ThisT = TSD<Allocator>;
31 void init(Allocator *Instance) NO_THREAD_SAFETY_ANALYSIS { in init()
56 void commitBack(Allocator *Instance) { Instance->commitBack(this); } in commitBack()
75 typename Allocator::CacheT &getCache() REQUIRES(Mutex) { return Cache; } in getCache()
76 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) { in getQuarantineCache()
84 typename Allocator::CacheT Cache GUARDED_BY(Mutex);
85 typename Allocator::QuarantineCacheT QuarantineCache GUARDED_BY(Mutex);
H A Dwrappers_c.cpp25 #define SCUDO_ALLOCATOR Allocator
31 scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
38 extern "C" INTERFACE void __scudo_print_stats(void) { Allocator.printStats(); }
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMappedBlockStream.h15 #include "llvm/Support/Allocator.h"
43 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
47 uint32_t StreamIndex, BumpPtrAllocator &Allocator);
51 BumpPtrAllocator &Allocator);
55 BumpPtrAllocator &Allocator);
68 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator()
78 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
101 BumpPtrAllocator &Allocator; variable
109 WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
113 uint32_t StreamIndex, BumpPtrAllocator &Allocator);
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DRecyclingAllocator.h34 AllocatorType Allocator; variable
37 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator()
43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate()
45 T *Allocate() { return Base.Allocate(Allocator); } in Allocate()
51 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate()
54 Allocator.PrintStats(); in PrintStats()
64 T, Size, Align> &Allocator) { in new() argument
66 return Allocator.Allocate(); in new()
H A DAllocator.h81 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument
82 : AllocTy(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl()
388 BumpPtrAllocator Allocator; variable
394 Allocator.setRedZoneSize(0); in SpecificBumpPtrAllocator()
397 : Allocator(std::move(Old.Allocator)) {} in SpecificBumpPtrAllocator()
401 Allocator = std::move(RHS.Allocator);
415 for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E; in DestroyAll()
418 std::distance(Allocator.Slabs.begin(), I)); in DestroyAll()
420 char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr in DestroyAll()
426 for (auto &PtrAndSize : Allocator.CustomSizedSlabs) { in DestroyAll()
[all …]
H A DRecycler.h68 void clear(AllocatorType &Allocator) { in clear() argument
71 Allocator.Deallocate(t); in clear()
83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() argument
89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
93 T *Allocate(AllocatorType &Allocator) { in Allocate() argument
94 return Allocate<T>(Allocator); in Allocate()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp46 BumpPtrAllocator &Allocator) in MappedBlockStream()
48 Allocator(Allocator) {} in MappedBlockStream()
52 BumpPtrAllocator &Allocator) { in createStream()
54 BlockSize, Layout, MsfData, Allocator); in createStream()
59 BumpPtrAllocator &Allocator) { in createIndexedStream()
65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
71 BumpPtrAllocator &Allocator) { in createDirectoryStream()
75 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream()
81 BumpPtrAllocator &Allocator) { in createFpmStream()
47 MappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) MappedBlockStream() argument
53 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument
60 createIndexedStream(const MSFLayout & Layout,BinaryStreamRef MsfData,uint32_t StreamIndex,BumpPtrAllocator & Allocator) createIndexedStream() argument
72 createDirectoryStream(const MSFLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createDirectoryStream() argument
82 createFpmStream(const MSFLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createFpmStream() argument
311 WritableMappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) WritableMappedBlockStream() argument
319 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument
328 createIndexedStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,uint32_t StreamIndex,BumpPtrAllocator & Allocator) createIndexedStream() argument
339 createDirectoryStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createDirectoryStream() argument
349 createFpmStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator,bool AltFpm) createFpmStream() argument
[all...]
H A DMSFBuilder.cpp41 BumpPtrAllocator &Allocator) in MSFBuilder()
42 : Allocator(Allocator), IsGrowable(CanGrow), in MSFBuilder()
51 Expected<MSFBuilder> MSFBuilder::create(BumpPtrAllocator &Allocator, in create()
60 CanGrow, Allocator); in create()
254 SuperBlock *SB = Allocator.Allocate<SuperBlock>(); in generateLayout()
288 ulittle32_t *DirBlocks = Allocator.Allocate<ulittle32_t>(NumDirectoryBlocks); in generateLayout()
296 ulittle32_t *Sizes = Allocator.Allocate<ulittle32_t>(StreamData.size()); in generateLayout()
302 Allocator.Allocate<ulittle32_t>(StreamData[I].second.size()); in generateLayout()
316 BumpPtrAllocator &Allocator) { in commitFpm()
40 MSFBuilder(uint32_t BlockSize,uint32_t MinBlockCount,bool CanGrow,BumpPtrAllocator & Allocator) MSFBuilder() argument
50 create(BumpPtrAllocator & Allocator,uint32_t BlockSize,uint32_t MinBlockCount,bool CanGrow) create() argument
313 commitFpm(WritableBinaryStream & MsfBuffer,const MSFLayout & Layout,BumpPtrAllocator & Allocator) commitFpm() argument
[all...]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dset21 class Allocator = allocator<Key>>
30 typedef Allocator allocator_type;
60 …set(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++…
76 set(from_range_t, R&& rg, const Allocator& a))
138 void merge(set<Key, C2, Allocator>& source); // C++17
140 void merge(set<Key, C2, Allocator>&& source); // C++17
142 void merge(multiset<Key, C2, Allocator>& source); // C++17
144 void merge(multiset<Key, C2, Allocator>&& source); // C++17
195 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>>
197 Compare = Compare(), Allocator = Allocator())
[all …]
H A Dmap21 class Allocator = allocator<pair<const Key, T>>>
30 typedef Allocator allocator_type;
74 …map(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++…
89 map(from_range_t, R&& rg, const Allocator& a))
179 void merge(map<Key, T, C2, Allocator>& source); // C++17
181 void merge(map<Key, T, C2, Allocator>&& source); // C++17
183 void merge(multimap<Key, T, C2, Allocator>& source); // C++17
185 void merge(multimap<Key, T, C2, Allocator>&& source); // C++17
235 class Allocator = allocator<iter_to_alloc_t<InputIterator>>>
236 map(InputIterator, InputIterator, Compare = Compare(), Allocator = Allocator())
[all …]
H A Dunordered_set69 unordered_set(const unordered_set&, const Allocator&);
75 unordered_set(unordered_set&&, const Allocator&);
144 void merge(unordered_set<Key, H2, P2, Allocator>& source); // C++17
146 void merge(unordered_set<Key, H2, P2, Allocator>&& source); // C++17
148 void merge(unordered_multiset<Key, H2, P2, Allocator>& source); // C++17
150 void merge(unordered_multiset<Key, H2, P2, Allocator>&& source); // C++17
153 noexcept(allocator_traits<Allocator>::is_always_equal::value &&
202 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>>
204 Hash = Hash(), Pred = Pred(), Allocator = Allocator())
206 Hash, Pred, Allocator>; // C++17
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinkerParallel/
H A DStringPool.h
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DPartialDiagnostic.h51 Allocator = Other.Allocator; in PartialDiagnostic()
76 Allocator = Other.Allocator; in PartialDiagnostic()
84 Allocator = reinterpret_cast<DiagStorageAllocator *>(~uintptr_t(0)); in PartialDiagnostic()
92 Allocator = &Allocator_; in PartialDiagnostic()
129 Allocator = Other.Allocator;
138 std::swap(Allocator, PD.Allocator); in swap()
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_allocator.h164 template <size_t N> struct Allocator { struct
225 explicit Allocator(size_t M) XRAY_NEVER_INSTRUMENT in Allocator() argument
233 explicit Allocator(void *P, size_t M) XRAY_NEVER_INSTRUMENT in Allocator() argument
241 Allocator(const Allocator &) = delete;
242 Allocator &operator=(const Allocator &) = delete; argument
244 Allocator(Allocator &&O) XRAY_NEVER_INSTRUMENT { in Allocator() argument
259 Allocator &operator=(Allocator &&O) XRAY_NEVER_INSTRUMENT {
279 ~Allocator() NOEXCEPT XRAY_NEVER_INSTRUMENT { in ~Allocator() argument
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp34 #include "llvm/Support/Allocator.h"
67 std::unique_ptr<BumpPtrAllocator> Allocator) in NativeSession() argument
68 : Pdb(std::move(PdbFile)), Allocator(std::move(Allocator)), in NativeSession()
79 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdb() local
80 auto File = std::make_unique<PDBFile>(Path, std::move(Stream), *Allocator); in createFromPdb()
87 std::make_unique<NativeSession>(std::move(File), std::move(Allocator)); in createFromPdb()
93 loadPdbFile(StringRef PdbPath, std::unique_ptr<BumpPtrAllocator> &Allocator) { in loadPdbFile() argument
110 auto File = std::make_unique<PDBFile>(PdbPath, std::move(Stream), *Allocator); in loadPdbFile()
122 auto Allocator in createFromPdbPath() local
162 auto Allocator = std::make_unique<BumpPtrAllocator>(); createFromExe() local
189 auto Allocator = std::make_unique<BumpPtrAllocator>(); searchForPdb() local
[all...]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFunction.cpp193 RegInfo = new (Allocator) MachineRegisterInfo(this); in init()
205 FrameInfo = new (Allocator) MachineFrameInfo( in init()
214 ConstantPool = new (Allocator) MachineConstantPool(getDataLayout()); in init()
238 WinEHInfo = new (Allocator) WinEHFuncInfo(); in init()
243 WasmEHInfo = new (Allocator) WasmEHFuncInfo(); in init()
256 MFInfo = Target.createMachineFunctionInfo(Allocator, F, &STI); in initTargetMachineFunctionInfo()
273 InstructionRecycler.clear(Allocator); in clear()
274 OperandRecycler.clear(Allocator); in clear()
275 BasicBlockRecycler.clear(Allocator); in clear()
280 Allocator.Deallocate(RegInfo); in clear()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DScopedHashTable.h67 AllocatorTy &Allocator) { in Create() argument
68 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create()
76 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) { in Destroy() argument
79 Allocator.Deallocate(this); in Destroy()
226 template <typename K, typename V, typename KInfo, typename Allocator>
227 ScopedHashTableScope<K, V, KInfo, Allocator>::
228 ScopedHashTableScope(ScopedHashTable<K, V, KInfo, Allocator> &ht) : HT(ht) { in ScopedHashTableScope()
234 template <typename K, typename V, typename KInfo, typename Allocator>
235 ScopedHashTableScope<K, V, KInfo, Allocator>::~ScopedHashTableScope() { in ~ScopedHashTableScope()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DTargetRegistry.h1052 TargetRegistry::RegisterMCAsmInfo(T, &Allocator); in RegisterMCAsmInfo()
1056 static MCAsmInfo *Allocator(const MCRegisterInfo & /*MRI*/, const Triple &TT, in Allocator() function
1086 TargetRegistry::RegisterMCObjectFileInfo(T, &Allocator); in RegisterMCObjectFileInfo()
1090 static MCObjectFileInfo *Allocator(MCContext &Ctx, bool PIC,
1119 TargetRegistry::RegisterMCInstrInfo(T, &Allocator); in RegisterMCInstrInfo()
1123 static MCInstrInfo *Allocator() { return new MCInstrInfoImpl(); } in Allocator() function
1150 TargetRegistry::RegisterMCInstrAnalysis(T, &Allocator); in RegisterMCInstrAnalysis()
1154 static MCInstrAnalysis *Allocator(const MCInstrInfo *Info) { in Allocator() function
1183 TargetRegistry::RegisterMCRegInfo(T, &Allocator); in RegisterMCRegInfo()
1187 static MCRegisterInfo *Allocator(const Triple & /*TT*/) { in Allocator() function
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h19 typedef SizeClassAllocator Allocator; typedef
20 typedef MemoryMapper<Allocator> MemoryMapperT;
74 typedef typename Allocator::SizeClassMapT SizeClassMap;
76 typedef typename Allocator::CompactPtrT CompactPtrT;
92 const uptr size = Allocator::ClassIdToSize(i); in InitCache()
129 typedef SizeClassAllocator Allocator; typedef
130 typedef typename Allocator::TransferBatch TransferBatch;
196 typedef typename Allocator::SizeClassMapT SizeClassMap;
204 Allocator::kUseSeparateSizeClassForBatch;
222 const uptr size = Allocator::ClassIdToSize(i); in InitCache()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCodeViewYAMLDebugSections.cpp36 #include "llvm/Support/Allocator.h"
93 toCodeViewSubsection(BumpPtrAllocator &Allocator,
111 toCodeViewSubsection(BumpPtrAllocator &Allocator,
125 toCodeViewSubsection(BumpPtrAllocator &Allocator,
141 toCodeViewSubsection(BumpPtrAllocator &Allocator,
157 toCodeViewSubsection(BumpPtrAllocator &Allocator,
171 toCodeViewSubsection(BumpPtrAllocator &Allocator,
185 toCodeViewSubsection(BumpPtrAllocator &Allocator,
199 toCodeViewSubsection(BumpPtrAllocator &Allocator,
213 toCodeViewSubsection(BumpPtrAllocator &Allocator,
402 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
413 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
444 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
465 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
475 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
489 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
500 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
509 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
532 toCodeViewSubsection(BumpPtrAllocator & Allocator,const codeview::StringsAndChecksums & SC) const toCodeViewSubsection() argument
748 toCodeViewSubsectionList(BumpPtrAllocator & Allocator,ArrayRef<YAMLDebugSubsection> Subsections,const codeview::StringsAndChecksums & SC) toCodeViewSubsectionList() argument
925 BumpPtrAllocator Allocator; initializeStringsAndChecksums() local
[all...]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h666 std::shared_ptr<GlobalCodeCompletionAllocator> Allocator) in CodeCompletionTUInfo() argument
667 : AllocatorRef(std::move(Allocator)) {} in CodeCompletionTUInfo()
691 CodeCompletionAllocator &Allocator;
704 CodeCompletionBuilder(CodeCompletionAllocator &Allocator, in CodeCompletionBuilder() argument
706 : Allocator(Allocator), CCTUInfo(CCTUInfo) {} in CodeCompletionBuilder()
708 CodeCompletionBuilder(CodeCompletionAllocator &Allocator, in CodeCompletionBuilder() argument
711 : Allocator(Allocator), CCTUInfo(CCTUInfo), Priority(Priority), in CodeCompletionBuilder()
716 CodeCompletionAllocator &getAllocator() const { return Allocator; } in getAllocator()
963 CodeCompletionAllocator &Allocator,
969 CodeCompletionAllocator &Allocator,
[all …]

12345678910>>...13