class MallocAllocator
Declaration
class MallocAllocator : public AllocatorBase { /* full declaration omitted */ };
Description
CRTP base class providing obvious overloads for the core \c Allocate() methods of LLVM-style allocators. This base class both documents the full public interface exposed by all LLVM-style allocators, and redirects all of the overloads to a single core set of methods which the derived class must define.
Declared at: llvm/include/llvm/Support/AllocatorBase.h:81
Inherits from: AllocatorBase
Method Overview
- public void * Allocate(size_t Size, size_t Alignment)
- public void Deallocate(const void * Ptr, size_t Size, size_t Alignment)
- public void PrintStats() const
- public void Reset()
Methods
¶void* Allocate(size_t Size, size_t Alignment)
void* Allocate(size_t Size, size_t Alignment)
Declared at: llvm/include/llvm/Support/AllocatorBase.h:85
Parameters
- size_t Size
- size_t Alignment
¶void Deallocate(const void* Ptr,
size_t Size,
size_t Alignment)
void Deallocate(const void* Ptr,
size_t Size,
size_t Alignment)
Declared at: llvm/include/llvm/Support/AllocatorBase.h:92
Parameters
- const void* Ptr
- size_t Size
- size_t Alignment
¶void PrintStats() const
void PrintStats() const
Declared at: llvm/include/llvm/Support/AllocatorBase.h:99
¶void Reset()
void Reset()
Declared at: llvm/include/llvm/Support/AllocatorBase.h:83