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/Allocator.h:94

Inherits from: AllocatorBase

Method Overview

Methods

void* Allocate(size_t Size, size_t)

Declared at: llvm/include/llvm/Support/Allocator.h:98

Parameters

size_t Size
size_t

void Deallocate(const void* Ptr, size_t)

Declared at: llvm/include/llvm/Support/Allocator.h:106

Parameters

const void* Ptr
size_t

void PrintStats() const

Declared at: llvm/include/llvm/Support/Allocator.h:113

void Reset()

Declared at: llvm/include/llvm/Support/Allocator.h:96