LLVM API Documentation

Public Member Functions
llvm::MallocAllocator Class Reference

#include <Allocator.h>

Inheritance diagram for llvm::MallocAllocator:
Inheritance graph
[legend]
Collaboration diagram for llvm::MallocAllocator:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 89 of file Allocator.h.


Member Function Documentation

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.


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