HomeSort by: relevance | last modified time | path
    Searched refs:Allocator (Results 1 - 25 of 213) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/external/apache2/llvm/dist/llvm/include/llvm/Support/
RecyclingAllocator.h 1 //==- llvm/Support/RecyclingAllocator.h - Recycling Allocator ----*- C++ -*-==//
21 /// RecyclingAllocator - This class wraps an Allocator, adding the
32 /// Allocator - The wrapped allocator.
34 AllocatorType Allocator;
37 ~RecyclingAllocator() { Base.clear(Allocator); }
43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
45 T *Allocate() { return Base.Allocate(Allocator); }
51 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); }
54 Allocator.PrintStats()
    [all...]
Recycler.h 1 //==- llvm/Support/Recycler.h - Recycling Allocator --------------*- C++ -*-==//
18 #include "llvm/Support/Allocator.h"
64 /// clear - Release all the tracked allocations to the allocator. The
68 void clear(AllocatorType &Allocator) {
71 Allocator.Deallocate(t);
83 SubClass *Allocate(AllocatorType &Allocator) {
89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align));
93 T *Allocate(AllocatorType &Allocator) {
94 return Allocate<T>(Allocator);
98 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element)
    [all...]
Allocator.h 1 //===- Allocator.h - Simple memory allocation abstraction -------*- C++ -*-===//
11 /// to the LLVM "Allocator" concept and is similar to MallocAllocator, but
13 /// allocator.
42 // printing code uses Allocator.h in its implementation.
50 /// This isn't strictly a bump-pointer allocator as it uses backing slabs of
61 /// use a custom allocator.
63 /// The GrowthDelay specifies after how many allocated slabs the allocator
83 BumpPtrAllocatorImpl(T &&Allocator)
84 : AllocatorT(std::forward<T &&>(Allocator)) {}
86 // Manually implement a move constructor as we must clear the old allocator'
    [all...]
ArrayRecycler.h 10 // arrays allocated from one of the allocators in Allocator.h
18 #include "llvm/Support/Allocator.h"
97 // to the allocator.
101 /// Release all the tracked allocations to the allocator. The recycler must
104 void clear(AllocatorType &Allocator) {
107 Allocator.Deallocate(Ptr);
121 /// Return an existing recycled array, or allocate one from Allocator if
125 T *allocate(Capacity Cap, AllocatorType &Allocator) {
130 return static_cast<T*>(Allocator.Allocate(sizeof(T)*Cap.getSize(), Align));
  /src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/MSF/
MappedBlockStream.h 15 #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; }
78 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
94 // We just store the allocator by reference. We use this to allocate
100 // allocator to allocate broken records from.
101 BumpPtrAllocator &Allocator;
    [all...]
MSFBuilder.h 15 #include "llvm/Support/Allocator.h"
56 static Expected<MSFBuilder> create(BumpPtrAllocator &Allocator,
118 BumpPtrAllocator &getAllocator() { return Allocator; }
122 BumpPtrAllocator &Allocator);
129 BumpPtrAllocator &Allocator;
  /src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/
allocator_test.cc 26 TEST(AllocatorTest, Construction) { Allocator<sizeof(TestData)> A(2 << 11); }
29 Allocator<sizeof(TestData)> A(2 << 11);
35 Allocator<sizeof(TestData)> A(sizeof(TestData));
48 Allocator<sizeof(OddSizedData)> A(GetPageSizeCached());
67 Allocator<sizeof(OddSizedData)> A(B.Data, B.Size);
  /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
ScopedHashTable.h 67 AllocatorTy &Allocator) {
68 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>();
76 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) {
79 Allocator.Deallocate(this);
165 AllocatorTy Allocator;
169 ScopedHashTable(AllocatorTy A) : Allocator(A) {}
177 /// Access to the allocator.
178 AllocatorTy &getAllocator() { return Allocator; }
179 const AllocatorTy &getAllocator() const { return Allocator; }
220 Allocator);
    [all...]
StringMap.h 109 AllocatorTy Allocator;
120 : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {
125 Allocator(A) {}
135 : StringMapImpl(std::move(RHS)), Allocator(std::move(RHS.Allocator)) {}
139 Allocator(RHS.Allocator) {
159 static_cast<MapEntryTy *>(Bucket)->getKey(), Allocator,
174 std::swap(Allocator, RHS.Allocator);
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/ObjectYAML/
CodeViewYAMLSymbols.h 36 toCodeViewSymbol(BumpPtrAllocator &Allocator,
  /src/sys/external/bsd/compiler_rt/dist/lib/xray/
xray_allocator.h 12 // Defines the allocator interface for an arena allocator, used primarily for
38 // internal allocator. This allows us to manage the memory directly, using
148 /// The Allocator type hands out fixed-sized chunks of memory that are
151 /// allocator also self-limits the peak memory usage to a dynamically defined
159 /// The Allocator instance will manage its own memory acquired through mmap.
165 template <size_t N> struct Allocator {
166 // The Allocator returns memory as Block instances.
187 Report("XRay Profiling: Failed to allocate memory for allocator.\n");
226 explicit Allocator(size_t M) XRAY_NEVER_INSTRUMEN
    [all...]
  /src/external/gpl3/gcc/dist/gcc/
hash-table.h 74 is allocated. This type is called the allocator type. It is
87 * The allocator type, (4) above. In general, you will not need to
88 provide your own allocator type. By default, hash tables will use
258 /* The ordinary memory allocator. */
259 /* FIXME (crowl): This allocator may be extracted for wider sharing later. */
365 Specify the template Allocator to allocate and free memory.
373 template<typename Type> class Allocator = xcallocator>
645 template<typename Type> class Allocator>
646 hash_table<Descriptor, Lazy, Allocator>::hash_table (size_t size, bool ggc,
679 template<typename Type> class Allocator>
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/
hash-table.h 74 is allocated. This type is called the allocator type. It is
87 * The allocator type, (4) above. In general, you will not need to
88 provide your own allocator type. By default, hash tables will use
258 /* The ordinary memory allocator. */
259 /* FIXME (crowl): This allocator may be extracted for wider sharing later. */
365 Specify the template Allocator to allocate and free memory.
373 template<typename Type> class Allocator = xcallocator>
603 template<typename Type> class Allocator>
604 hash_table<Descriptor, Lazy, Allocator>::hash_table (size_t size, bool ggc,
634 template<typename Type> class Allocator>
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/AST/
CommentCommandTraits.cpp 18 CommandTraits::CommandTraits(llvm::BumpPtrAllocator &Allocator,
20 NextID(llvm::array_lengthof(Commands)), Allocator(Allocator) {
85 char *Name = Allocator.Allocate<char>(CommandName.size() + 1);
90 CommandInfo *Info = new (Allocator) CommandInfo();
  /src/external/apache2/llvm/dist/clang/include/clang/Basic/
PartialDiagnostic.h 54 Allocator = Other.Allocator;
79 Allocator = Other.Allocator;
87 Allocator = reinterpret_cast<DiagStorageAllocator *>(~uintptr_t(0));
95 Allocator = &Allocator_;
132 Allocator = Other.Allocator;
141 std::swap(Allocator, PD.Allocator);
    [all...]
  /src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/
showcase.d 7 Source: $(PHOBOSSRC std/experimental/allocator/_showcase.d)
9 module std.experimental.allocator.showcase;
11 import std.experimental.allocator.building_blocks.fallback_allocator,
12 std.experimental.allocator.gc_allocator,
13 std.experimental.allocator.building_blocks.region;
18 Allocator that uses stack allocation for up to `stackSize` bytes and
19 then falls back to `Allocator`. Defined as:
22 alias StackFront(size_t stackSize, Allocator) =
24 InSituRegion!(stackSize, Allocator.alignment,
25 hasMember!(Allocator, "deallocate"
    [all...]
  /src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
affix_allocator.d 3 Source: $(PHOBOSSRC std/experimental/allocator/building_blocks/affix_allocator.d)
5 module std.experimental.allocator.building_blocks.affix_allocator;
9 Allocator that adds some extra data before (of type `Prefix`) and/or after
10 (of type `Suffix`) any allocation made with its parent allocator. This is
14 If `Prefix` is not `void`, `Allocator` must guarantee an alignment at
21 The following methods are defined if `Allocator` defines them, and forward to it: `deallocateAll`, `empty`, `owns`.
23 struct AffixAllocator(Allocator, Prefix, Suffix = void)
27 import std.experimental.allocator : RCIAllocator, theAllocator;
28 import std.experimental.allocator.common : stateSize, forwardToMember,
35 static if (hasStaticallyKnownAlignment!Allocator)
    [all...]
  /src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/
PdbYaml.h 99 explicit PdbObject(BumpPtrAllocator &Allocator) : Allocator(Allocator) {}
112 BumpPtrAllocator &Allocator;
  /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/MSF/
MappedBlockStream.cpp 48 BumpPtrAllocator &Allocator)
50 Allocator(Allocator) {}
54 BumpPtrAllocator &Allocator) {
56 BlockSize, Layout, MsfData, Allocator);
61 BumpPtrAllocator &Allocator) {
67 Layout.SB->BlockSize, SL, MsfData, Allocator);
73 BumpPtrAllocator &Allocator) {
77 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator);
83 BumpPtrAllocator &Allocator) {
    [all...]
MSFBuilder.cpp 40 BumpPtrAllocator &Allocator)
41 : Allocator(Allocator), IsGrowable(CanGrow),
50 Expected<MSFBuilder> MSFBuilder::create(BumpPtrAllocator &Allocator,
59 CanGrow, Allocator);
251 SuperBlock *SB = Allocator.Allocate<SuperBlock>();
285 ulittle32_t *DirBlocks = Allocator.Allocate<ulittle32_t>(NumDirectoryBlocks);
293 ulittle32_t *Sizes = Allocator.Allocate<ulittle32_t>(StreamData.size());
299 Allocator.Allocate<ulittle32_t>(StreamData[I].second.size());
313 BumpPtrAllocator &Allocator) {
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
CommentCommandTraits.h 22 #include "llvm/Support/Allocator.h"
136 CommandTraits(llvm::BumpPtrAllocator &Allocator,
178 /// Allocator for CommandInfo objects.
179 llvm::BumpPtrAllocator &Allocator;
  /src/external/apache2/llvm/dist/clang/lib/Format/
FormatTokenLexer.h 42 llvm::SpecificBumpPtrAllocator<FormatToken> &Allocator,
110 llvm::SpecificBumpPtrAllocator<FormatToken> &Allocator;
Macros.h 108 llvm::SpecificBumpPtrAllocator<FormatToken> &Allocator,
132 llvm::SpecificBumpPtrAllocator<FormatToken> &Allocator;
  /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/CodeView/
SymbolSerializer.cpp 21 SymbolSerializer::SymbolSerializer(BumpPtrAllocator &Allocator,
23 : Storage(Allocator), Stream(RecordBuffer, support::little), Writer(Stream),
  /src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
sanitizer_allocator_local_cache.h 9 // Part of the Sanitizer Allocator.
19 typedef SizeClassAllocator Allocator;
20 typedef MemoryMapper<Allocator> MemoryMapperT;
28 void Destroy(SizeClassAllocator *allocator, AllocatorGlobalStats *s) {
29 Drain(allocator);
34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) {
39 if (UNLIKELY(!Refill(c, allocator, class_id)))
45 return reinterpret_cast<void *>(allocator->CompactPtrToPointer(
46 allocator->GetRegionBeginBySizeClass(class_id), chunk));
49 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p)
    [all...]

Completed in 38 milliseconds

1 2 3 4 5 6 7 8 9