LLVM 22.0.0git
|
RecyclingAllocator - This class wraps an Allocator, adding the functionality of recycling deleted objects. More...
#include "llvm/Support/RecyclingAllocator.h"
Public Member Functions | |
~RecyclingAllocator () | |
template<class SubClass> | |
SubClass * | Allocate () |
Allocate - Return a pointer to storage for an object of type SubClass. | |
T * | Allocate () |
template<class SubClass> | |
void | Deallocate (SubClass *E) |
Deallocate - Release storage for the pointed-to object. | |
void | PrintStats () |
RecyclingAllocator - This class wraps an Allocator, adding the functionality of recycling deleted objects.
Definition at line 26 of file RecyclingAllocator.h.
|
inline |
Definition at line 37 of file RecyclingAllocator.h.
|
inline |
Allocate - Return a pointer to storage for an object of type SubClass.
The storage may be either newly allocated or recycled.
Definition at line 43 of file RecyclingAllocator.h.
Referenced by llvm::RecyclingAllocator< BumpPtrAllocator, char, AllocBytes, CacheLineBytes >::Allocate().
|
inline |
Definition at line 45 of file RecyclingAllocator.h.
|
inline |
Deallocate - Release storage for the pointed-to object.
The storage will be kept track of and may be recycled.
Definition at line 51 of file RecyclingAllocator.h.
|
inline |
Definition at line 53 of file RecyclingAllocator.h.