LLVM 20.0.0git
Classes | Namespaces | Macros
AllocatorBase.h File Reference

This file defines MallocAllocator. More...

#include "llvm/Support/Compiler.h"
#include "llvm/Support/MemAlloc.h"
#include <type_traits>

Go to the source code of this file.

Classes

class  llvm::AllocatorBase< DerivedT >
 CRTP base class providing obvious overloads for the core Allocate() methods of LLVM-style allocators. More...
 
class  llvm::MallocAllocator
 
class  llvm::detail::AllocatorHolder< Alloc >
 
class  llvm::detail::AllocatorHolder< Alloc & >
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::detail
 These are wrappers over isa* function that allow them to be used in generic algorithms such as llvm:all_of, llvm::none_of, etc.
 

Macros

#define LLVM_ALLOCATORHOLDER_EMPTYBASE
 

Detailed Description

This file defines MallocAllocator.

MallocAllocator conforms to the LLVM "Allocator" concept which consists of an Allocate method accepting a size and alignment, and a Deallocate accepting a pointer and size. Further, the LLVM "Allocator" concept has overloads of Allocate and Deallocate for setting size and alignment based on the final type. These overloads are typically provided by a base class template AllocatorBase.

Definition in file AllocatorBase.h.

Macro Definition Documentation

◆ LLVM_ALLOCATORHOLDER_EMPTYBASE

#define LLVM_ALLOCATORHOLDER_EMPTYBASE

Definition at line 25 of file AllocatorBase.h.