llvm::Recycler

Recycler - This class manages a linked-list of deallocated nodes and facilitates reusing deallocated memory in place of allocating new memory.

Synopsis

Declared in <llvm/Support/Recycler.h>

template<
    class T,
    size_t Size = sizeof(T),
    size_t Align = alignof(T)>
class Recycler;

Member Functions

NameDescription
Recycler [constructor]Constructors
~Recycler [destructor]Destroy the recycler; free list must be empty (call clear() first).
Allocate Allocate overloads
Deallocate Return Element to the free list for later reuse.
PrintStats Print free-list statistics for this recycler.
clear Release all tracked allocations to the allocator.