LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
llvm::MallocAllocator Class Reference

#include <Allocator.h>

Public Member Functions

 MallocAllocator ()
 
 ~MallocAllocator ()
 
void Reset ()
 
void * Allocate (size_t Size, size_t)
 
template<typename T >
TAllocate ()
 
template<typename T >
TAllocate (size_t Num)
 
void Deallocate (const void *Ptr)
 
void PrintStats () const
 

Detailed Description

Definition at line 29 of file Allocator.h.

Constructor & Destructor Documentation

llvm::MallocAllocator::MallocAllocator ( )
inline

Definition at line 31 of file Allocator.h.

llvm::MallocAllocator::~MallocAllocator ( )
inline

Definition at line 32 of file Allocator.h.

Member Function Documentation

void* llvm::MallocAllocator::Allocate ( size_t  Size,
size_t   
)
inline

Definition at line 36 of file Allocator.h.

References llvm::LibFunc::malloc.

Referenced by llvm::MallocSlabAllocator::Allocate().

template<typename T >
T* llvm::MallocAllocator::Allocate ( )
inline

Definition at line 39 of file Allocator.h.

References llvm::LibFunc::malloc.

template<typename T >
T* llvm::MallocAllocator::Allocate ( size_t  Num)
inline

Definition at line 42 of file Allocator.h.

References llvm::LibFunc::malloc.

void llvm::MallocAllocator::Deallocate ( const void *  Ptr)
inline

Definition at line 46 of file Allocator.h.

References llvm::LibFunc::free.

Referenced by llvm::MallocSlabAllocator::Deallocate().

void llvm::MallocAllocator::PrintStats ( ) const
inline

Definition at line 48 of file Allocator.h.

void llvm::MallocAllocator::Reset ( )
inline

Definition at line 34 of file Allocator.h.


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