LLVM 20.0.0git
|
Recycler - This class manages a linked-list of deallocated nodes and facilitates reusing deallocated memory in place of allocating new memory. More...
#include "llvm/Support/Recycler.h"
Public Member Functions | |
~Recycler () | |
template<class AllocatorType > | |
void | clear (AllocatorType &Allocator) |
clear - Release all the tracked allocations to the allocator. | |
void | clear (BumpPtrAllocator &) |
Special case for BumpPtrAllocator which has an empty Deallocate() function. | |
template<class SubClass , class AllocatorType > | |
SubClass * | Allocate (AllocatorType &Allocator) |
template<class AllocatorType > | |
T * | Allocate (AllocatorType &Allocator) |
template<class SubClass , class AllocatorType > | |
void | Deallocate (AllocatorType &, SubClass *Element) |
void | PrintStats () |
Recycler - This class manages a linked-list of deallocated nodes and facilitates reusing deallocated memory in place of allocating new memory.
Definition at line 34 of file Recycler.h.
|
inline |
Definition at line 57 of file Recycler.h.
References assert().
|
inline |
Definition at line 83 of file Recycler.h.
|
inline |
Definition at line 93 of file Recycler.h.
References Allocator.
|
inline |
clear - Release all the tracked allocations to the allocator.
The recycler must be free of any tracked allocations before being deleted; calling clear is one way to ensure this.
Definition at line 68 of file Recycler.h.
References Allocator.
|
inline |
Special case for BumpPtrAllocator which has an empty Deallocate() function.
There is no need to traverse the free list, pulling all the objects into cache.
Definition at line 80 of file Recycler.h.
|
inline |
Definition at line 98 of file Recycler.h.
void llvm::Recycler< T, Size, Align >::PrintStats |
Definition at line 106 of file Recycler.h.
References I, llvm::PrintRecyclerStats(), and Size.