LLVM API Documentation
#include <Allocator.h>
Public Member Functions | |
virtual | ~SlabAllocator () |
virtual MemSlab * | Allocate (size_t Size)=0 |
virtual void | Deallocate (MemSlab *Slab)=0 |
SlabAllocator - This class can be used to parameterize the underlying allocation strategy for the bump allocator. In particular, this is used by the JIT to allocate contiguous swathes of executable memory. The interface uses MemSlab's instead of void *'s so that the allocator doesn't have to remember the size of the pointer it allocated.
Definition at line 64 of file Allocator.h.
|
virtual |
Definition at line 174 of file Allocator.cpp.
|
pure virtual |
Implemented in llvm::MallocSlabAllocator.
Referenced by llvm::BumpPtrAllocator::Allocate().
|
pure virtual |
Implemented in llvm::MallocSlabAllocator.