LLVM API Documentation
#include <Recycler.h>
Public Member Functions | |
~Recycler () | |
template<class AllocatorType > | |
void | clear (AllocatorType &Allocator) |
void | clear (BumpPtrAllocator &) |
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 67 of file Recycler.h.
|
inline |
Definition at line 74 of file Recycler.h.
|
inline |
Definition at line 102 of file Recycler.h.
Referenced by llvm::RecyclingAllocator< BumpPtrAllocator, SDNode, sizeof(LargestSDNode), AlignOf< MostAlignedSDNode >::Alignment >::Allocate().
|
inline |
Definition at line 113 of file Recycler.h.
|
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 85 of file Recycler.h.
|
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 97 of file Recycler.h.
|
inline |
Definition at line 118 of file Recycler.h.
Referenced by llvm::RecyclingAllocator< BumpPtrAllocator, SDNode, sizeof(LargestSDNode), AlignOf< MostAlignedSDNode >::Alignment >::Deallocate().
|
inline |
Definition at line 122 of file Recycler.h.
Referenced by llvm::RecyclingAllocator< BumpPtrAllocator, SDNode, sizeof(LargestSDNode), AlignOf< MostAlignedSDNode >::Alignment >::PrintStats().