MLIR  19.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
mlir::detail::DistinctAttrStorage Struct Reference

An attribute to store a distinct reference to another attribute. More...

#include "IR/AttributeDetail.h"

+ Inheritance diagram for mlir::detail::DistinctAttrStorage:

Public Types

using KeyTy = Attribute
 

Public Member Functions

 DistinctAttrStorage (Attribute referencedAttr)
 
KeyTy getAsKey () const
 Returns the referenced attribute as key. More...
 
- Public Member Functions inherited from mlir::AttributeStorage
const AbstractAttributegetAbstractAttribute () const
 Return the abstract descriptor for this attribute. More...
 

Public Attributes

Attribute referencedAttr
 The referenced attribute. More...
 

Additional Inherited Members

- Protected Member Functions inherited from mlir::AttributeStorage
void initializeAbstractAttribute (const AbstractAttribute &abstractAttr)
 Set the abstract attribute for this storage instance. More...
 
void initialize (MLIRContext *context)
 Default initialization for attribute storage classes that require no additional initialization. More...
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default
 

Detailed Description

An attribute to store a distinct reference to another attribute.

Definition at line 362 of file AttributeDetail.h.

Member Typedef Documentation

◆ KeyTy

Definition at line 363 of file AttributeDetail.h.

Constructor & Destructor Documentation

◆ DistinctAttrStorage()

mlir::detail::DistinctAttrStorage::DistinctAttrStorage ( Attribute  referencedAttr)
inline

Definition at line 365 of file AttributeDetail.h.

Member Function Documentation

◆ getAsKey()

KeyTy mlir::detail::DistinctAttrStorage::getAsKey ( ) const
inline

Returns the referenced attribute as key.

Definition at line 369 of file AttributeDetail.h.

References referencedAttr.

Member Data Documentation

◆ referencedAttr

Attribute mlir::detail::DistinctAttrStorage::referencedAttr

The referenced attribute.

Definition at line 372 of file AttributeDetail.h.

Referenced by getAsKey().


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