LLVM 17.0.0git
|
#include "llvm/Support/AllocatorBase.h"
Public Member Functions | |
void | Reset () |
LLVM_ATTRIBUTE_RETURNS_NONNULL void * | Allocate (size_t Size, size_t Alignment) |
void | Deallocate (const void *Ptr, size_t Size, size_t Alignment) |
void | PrintStats () const |
![]() | |
void * | Allocate (size_t Size, size_t Alignment) |
Allocate Size bytes of Alignment aligned memory. | |
T * | Allocate (size_t Num=1) |
Allocate space for a sequence of objects without constructing them. | |
void | Deallocate (const void *Ptr, size_t Size, size_t Alignment) |
Deallocate Ptr to Size bytes of memory allocated by this allocator. | |
std::enable_if_t<!std::is_same_v< std::remove_cv_t< T >, void >, void > | Deallocate (T *Ptr, size_t Num=1) |
Deallocate space for a sequence of objects without constructing them. | |
Definition at line 81 of file AllocatorBase.h.
|
inline |
Definition at line 85 of file AllocatorBase.h.
References llvm::allocate_buffer(), and Size.
|
inline |
Definition at line 92 of file AllocatorBase.h.
References llvm::deallocate_buffer(), Ptr, and Size.
|
inline |
Definition at line 99 of file AllocatorBase.h.
|
inline |
Definition at line 83 of file AllocatorBase.h.