MLIR  16.0.0git
Public Member Functions | List of all members
mlir::StorageUniquer::StorageAllocator Class Reference

This is a utility allocator used to allocate memory for instances of derived types. More...

#include "mlir/Support/StorageUniquer.h"

Public Member Functions

template<typename T >
ArrayRef< T > copyInto (ArrayRef< T > elements)
 Copy the specified array of elements into memory managed by our bump pointer allocator. More...
 
StringRef copyInto (StringRef str)
 Copy the provided string into memory managed by our bump pointer allocator. More...
 
template<typename T >
T * allocate ()
 Allocate an instance of the provided type. More...
 
voidallocate (size_t size, size_t alignment)
 Allocate 'size' bytes of 'alignment' aligned memory. More...
 
bool allocated (const void *ptr)
 Returns true if this allocator allocated the provided object pointer. More...
 

Detailed Description

This is a utility allocator used to allocate memory for instances of derived types.

Definition at line 93 of file StorageUniquer.h.

Member Function Documentation

◆ allocate() [1/2]

template<typename T >
T* mlir::StorageUniquer::StorageAllocator::allocate ( )
inline

Allocate an instance of the provided type.

Definition at line 120 of file StorageUniquer.h.

Referenced by mlir::spirv::detail::ArrayTypeStorage::construct(), mlir::impl::DataLayoutEntryStorage::construct(), mlir::pdll::ast::detail::TypeStorageBase< TypeTypeStorage >::construct(), mlir::detail::AffineBinaryOpExprStorage::construct(), mlir::detail::IntegerTypeStorage::construct(), mlir::spirv::detail::InterfaceVarABIAttributeStorage::construct(), mlir::detail::AffineMapStorage::construct(), mlir::gpu::MMAMatrixStorageType::construct(), mlir::detail::AffineDimExprStorage::construct(), mlir::detail::FunctionTypeStorage::construct(), mlir::spirv::detail::VerCapExtAttributeStorage::construct(), mlir::pdll::ast::detail::OperationTypeStorage::construct(), mlir::detail::AffineConstantExprStorage::construct(), mlir::quant::detail::AnyQuantizedTypeStorage::construct(), mlir::spirv::detail::TargetEnvAttributeStorage::construct(), mlir::pdl_to_pdl_interp::PredicateBase< TypeQuestion, Qualifier, void, Predicates::TypeQuestion >::construct(), mlir::detail::TupleTypeStorage::construct(), mlir::detail::DynamicTypeStorage::construct(), mlir::pdll::ast::detail::TupleTypeStorage::construct(), mlir::impl::DataLayoutSpecStorage::construct(), mlir::GenericProgramPointBase< CFGEdge, std::pair< Block *, Block *> >::construct(), mlir::quant::detail::UniformQuantizedTypeStorage::construct(), mlir::detail::DenseIntOrFPElementsAttrStorage::construct(), mlir::spirv::detail::CooperativeMatrixTypeStorage::construct(), mlir::vector::detail::BitmaskEnumStorage::construct(), mlir::LLVM::detail::LLVMStructTypeStorage::construct(), mlir::detail::DynamicAttrStorage::construct(), mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::construct(), mlir::detail::DenseStringElementsAttrStorage::construct(), mlir::quant::detail::CalibratedQuantizedTypeStorage::construct(), mlir::spirv::detail::ImageTypeStorage::construct(), mlir::LLVM::detail::LLVMFunctionTypeStorage::construct(), mlir::detail::StringAttrStorage::construct(), mlir::spirv::detail::PointerTypeStorage::construct(), mlir::LLVM::detail::LLVMPointerTypeStorage::construct(), mlir::LLVM::detail::LLVMTypeAndSizeStorage::construct(), mlir::spirv::detail::RuntimeArrayTypeStorage::construct(), mlir::spirv::detail::SampledImageTypeStorage::construct(), mlir::spirv::detail::StructTypeStorage::construct(), and mlir::spirv::detail::MatrixTypeStorage::construct().

◆ allocate() [2/2]

void* mlir::StorageUniquer::StorageAllocator::allocate ( size_t  size,
size_t  alignment 
)
inline

Allocate 'size' bytes of 'alignment' aligned memory.

Definition at line 125 of file StorageUniquer.h.

◆ allocated()

bool mlir::StorageUniquer::StorageAllocator::allocated ( const void ptr)
inline

Returns true if this allocator allocated the provided object pointer.

Definition at line 130 of file StorageUniquer.h.

◆ copyInto() [1/2]

template<typename T >
ArrayRef<T> mlir::StorageUniquer::StorageAllocator::copyInto ( ArrayRef< T >  elements)
inline

◆ copyInto() [2/2]

StringRef mlir::StorageUniquer::StorageAllocator::copyInto ( StringRef  str)
inline

Copy the provided string into memory managed by our bump pointer allocator.

Definition at line 108 of file StorageUniquer.h.


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