|
LLVM 22.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 () | |
| Recycler (const Recycler &)=delete | |
| Recycler (Recycler &&Other) | |
| Recycler ()=default | |
| template<class AllocatorType> | |
| void | clear (AllocatorType &Allocator) |
| clear - Release all the tracked allocations to the allocator. | |
| 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 37 of file Recycler.h.
|
inline |
Definition at line 60 of file Recycler.h.
References assert().
|
delete |
References Recycler().
Referenced by Recycler(), and Recycler().
|
inline |
Definition at line 67 of file Recycler.h.
References llvm::Other, and Recycler().
|
default |
|
inline |
|
inline |
Definition at line 102 of file Recycler.h.
References Allocate(), Allocator, and T.
|
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 75 of file Recycler.h.
|
inline |
Definition at line 107 of file Recycler.h.
| void llvm::Recycler< T, Size, Align >::PrintStats | ( | ) |
Definition at line 115 of file Recycler.h.
References I, llvm::PrintRecyclerStats(), and Size.