LLVM API Documentation
#include <Allocator.h>
Public Member Functions | |
void | Reset () |
LLVM_ATTRIBUTE_RETURNS_NONNULL void * | Allocate (size_t Size, size_t) |
Allocate Size bytes of Alignment aligned memory. This method must be implemented by DerivedT . | |
void | Deallocate (const void *Ptr, size_t) |
Deallocate Ptr to Size bytes of memory allocated by this allocator. | |
void | PrintStats () const |
Definition at line 89 of file Allocator.h.
LLVM_ATTRIBUTE_RETURNS_NONNULL void* llvm::MallocAllocator::Allocate | ( | size_t | Size, |
size_t | Alignment | ||
) | [inline] |
Allocate Size bytes of Alignment aligned memory. This method must be implemented by DerivedT
.
Reimplemented from llvm::AllocatorBase< MallocAllocator >.
Definition at line 93 of file Allocator.h.
References llvm::LibFunc::malloc.
void llvm::MallocAllocator::Deallocate | ( | const void * | Ptr, |
size_t | Size | ||
) | [inline] |
Deallocate Ptr to Size bytes of memory allocated by this allocator.
Reimplemented from llvm::AllocatorBase< MallocAllocator >.
Definition at line 101 of file Allocator.h.
References llvm::LibFunc::free.
void llvm::MallocAllocator::PrintStats | ( | ) | const [inline] |
Definition at line 108 of file Allocator.h.
void llvm::MallocAllocator::Reset | ( | ) | [inline] |
Definition at line 91 of file Allocator.h.