LLVM API Documentation
#include <Allocator.h>
Public Member Functions | |
MallocSlabAllocator () | |
virtual | ~MallocSlabAllocator () |
virtual MemSlab * | Allocate (size_t Size) LLVM_OVERRIDE |
virtual void | Deallocate (MemSlab *Slab) LLVM_OVERRIDE |
![]() | |
virtual | ~SlabAllocator () |
MallocSlabAllocator - The default slab allocator for the bump allocator is an adapter class for MallocAllocator that just forwards the method calls and translates the arguments.
Definition at line 74 of file Allocator.h.
|
inline |
Definition at line 80 of file Allocator.h.
|
virtual |
Definition at line 176 of file Allocator.cpp.
|
virtual |
Implements llvm::SlabAllocator.
Definition at line 178 of file Allocator.cpp.
References llvm::MallocAllocator::Allocate(), llvm::MemSlab::NextPtr, and llvm::MemSlab::Size.
|
virtual |
Implements llvm::SlabAllocator.
Definition at line 185 of file Allocator.cpp.
References llvm::MallocAllocator::Deallocate().