LLVM 19.0.0git
|
A BumpPtrAllocator that allows only elements of a specific type to be allocated. More...
#include "llvm/Support/Allocator.h"
Public Member Functions | |
SpecificBumpPtrAllocator () | |
SpecificBumpPtrAllocator (SpecificBumpPtrAllocator &&Old) | |
~SpecificBumpPtrAllocator () | |
SpecificBumpPtrAllocator & | operator= (SpecificBumpPtrAllocator &&RHS) |
void | DestroyAll () |
Call the destructor of each allocated object and deallocate all but the current slab and reset the current pointer to the beginning of it, freeing all memory allocated so far. | |
T * | Allocate (size_t num=1) |
Allocate space for an array of objects without constructing them. | |
A BumpPtrAllocator that allows only elements of a specific type to be allocated.
This allows calling the destructor in DestroyAll() and when the allocator is destroyed.
Definition at line 387 of file Allocator.h.
|
inline |
Definition at line 391 of file Allocator.h.
References Allocator.
|
inline |
Definition at line 396 of file Allocator.h.
References Allocator.
|
inline |
Definition at line 398 of file Allocator.h.
References llvm::SpecificBumpPtrAllocator< T >::DestroyAll().
|
inline |
Allocate space for an array of objects without constructing them.
Definition at line 437 of file Allocator.h.
References Allocator.
Referenced by llvm::ModuleSymbolTable::addModule(), llvm::PMTopLevelManager::findAnalysisUsage(), and llvm::OnDiskChainedHashTableGenerator< Info >::insert().
|
inline |
Call the destructor of each allocated object and deallocate all but the current slab and reset the current pointer to the beginning of it, freeing all memory allocated so far.
Definition at line 408 of file Allocator.h.
References llvm::alignAddr(), Allocator, assert(), E, End, I, Ptr, Size, and T.
Referenced by llvm::SpecificBumpPtrAllocator< T >::~SpecificBumpPtrAllocator().
|
inline |
Definition at line 400 of file Allocator.h.