LLVM 22.0.0git
RecyclingAllocator.h File Reference

Go to the source code of this file.

Classes

class  llvm::RecyclingAllocator< AllocatorType, T, Size, Align >
 RecyclingAllocator - This class wraps an Allocator, adding the functionality of recycling deleted objects. More...

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

template<class AllocatorType, class T, size_t Size, size_t Align>
void * operator new (size_t size, llvm::RecyclingAllocator< AllocatorType, T, Size, Align > &Allocator)
template<class AllocatorType, class T, size_t Size, size_t Align>
void operator delete (void *E, llvm::RecyclingAllocator< AllocatorType, T, Size, Align > &A)

Function Documentation

◆ operator delete()

template<class AllocatorType, class T, size_t Size, size_t Align>
void operator delete ( void * E,
llvm::RecyclingAllocator< AllocatorType, T, Size, Align > & A )
inline

Definition at line 70 of file RecyclingAllocator.h.

References A(), E(), Size, and T.

◆ operator new()

template<class AllocatorType, class T, size_t Size, size_t Align>
void * operator new ( size_t size,
llvm::RecyclingAllocator< AllocatorType, T, Size, Align > & Allocator )
inline

Definition at line 62 of file RecyclingAllocator.h.

References Allocator, assert(), Size, and T.