MLIR 22.0.0git
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.
Public Member Functions inherited from mlir::AttributeStorage
const AbstractAttributegetAbstractAttribute () const
 Return the abstract descriptor for this attribute.

Public Attributes

Attribute referencedAttr
 The referenced attribute.

Additional Inherited Members

Protected Member Functions inherited from mlir::AttributeStorage
void initializeAbstractAttribute (const AbstractAttribute &abstractAttr)
 Set the abstract attribute for this storage instance.
void initialize (MLIRContext *context)
 Default initialization for attribute storage classes that require no additional initialization.
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 360 of file AttributeDetail.h.

Member Typedef Documentation

◆ KeyTy

Constructor & Destructor Documentation

◆ DistinctAttrStorage()

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

Definition at line 363 of file AttributeDetail.h.

References referencedAttr.

Member Function Documentation

◆ getAsKey()

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

Returns the referenced attribute as key.

Definition at line 367 of file AttributeDetail.h.

References referencedAttr.

Member Data Documentation

◆ referencedAttr

Attribute mlir::detail::DistinctAttrStorage::referencedAttr

The referenced attribute.

Definition at line 370 of file AttributeDetail.h.

Referenced by DistinctAttrStorage(), and getAsKey().


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