MLIR 24.0.0git
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)
void beginTransientScope ()
void endTransientScope ()
bool isInTransientScope () const

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 316 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 324 of file AttributeDetail.h.

◆ beginTransientScope()

void mlir::detail::DistinctAttributeAllocator::beginTransientScope ( )
inline

Definition at line 332 of file AttributeDetail.h.

Referenced by mlir::MLIRContext::beginTransientScope().

◆ endTransientScope()

void mlir::detail::DistinctAttributeAllocator::endTransientScope ( )
inline

Definition at line 338 of file AttributeDetail.h.

Referenced by mlir::MLIRContext::endTransientScope().

◆ isInTransientScope()

bool mlir::detail::DistinctAttributeAllocator::isInTransientScope ( ) const
inline

Definition at line 340 of file AttributeDetail.h.

◆ operator=()

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

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