llvm::SlabAllocator Class Reference

SlabAllocator - This class can be used to parameterize the underlying allocation strategy for the bump allocator. More...

#include <Allocator.h>

Inheritance diagram for llvm::SlabAllocator:
llvm::MallocSlabAllocator

List of all members.

Public Member Functions

virtual ~SlabAllocator ()
virtual MemSlabAllocate (size_t Size)=0
virtual void Deallocate (MemSlab *Slab)=0

Detailed Description

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.


Constructor & Destructor Documentation

llvm::SlabAllocator::~SlabAllocator (  )  [virtual]

Member Function Documentation

virtual MemSlab* llvm::SlabAllocator::Allocate ( size_t  Size  )  [pure virtual]

Implemented in llvm::MallocSlabAllocator.

virtual void llvm::SlabAllocator::Deallocate ( MemSlab Slab  )  [pure virtual]

Implemented in llvm::MallocSlabAllocator.


The documentation for this class was generated from the following files:

Generated on 2 Nov 2013 for Galois by  doxygen 1.6.1