MLIR  22.0.0git
Public Member Functions | List of all members
mlir::detail::DistinctAttributeAllocator Class Referencefinal

An allocator for distinct attribute storage instances. More...

#include "IR/AttributeDetail.h"

Public Member Functions

 DistinctAttributeAllocator ()=default
 
 DistinctAttributeAllocator (DistinctAttributeAllocator &&)=delete
 
 DistinctAttributeAllocator (const DistinctAttributeAllocator &)=delete
 
DistinctAttributeAllocatoroperator= (const DistinctAttributeAllocator &)=delete
 
DistinctAttrStorageallocate (Attribute referencedAttr)
 

Detailed Description

An allocator for distinct attribute storage instances.

Uses a synchronized BumpPtrAllocator to ensure thread-safety. The allocated storage is deleted when the DistinctAttributeAllocator is destroyed.

Definition at line 400 of file AttributeDetail.h.

Constructor & Destructor Documentation

◆ DistinctAttributeAllocator() [1/3]

mlir::detail::DistinctAttributeAllocator::DistinctAttributeAllocator ( )
default

◆ DistinctAttributeAllocator() [2/3]

mlir::detail::DistinctAttributeAllocator::DistinctAttributeAllocator ( DistinctAttributeAllocator &&  )
delete

◆ DistinctAttributeAllocator() [3/3]

mlir::detail::DistinctAttributeAllocator::DistinctAttributeAllocator ( const DistinctAttributeAllocator )
delete

Member Function Documentation

◆ allocate()

DistinctAttrStorage* mlir::detail::DistinctAttributeAllocator::allocate ( Attribute  referencedAttr)
inline

Definition at line 408 of file AttributeDetail.h.

◆ operator=()

DistinctAttributeAllocator& mlir::detail::DistinctAttributeAllocator::operator= ( const DistinctAttributeAllocator )
delete

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