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

Storage of DynamicAttr. More...

+ Inheritance diagram for mlir::detail::DynamicAttrStorage:

Public Types

using KeyTy = std::pair< DynamicAttrDefinition *, ArrayRef< Attribute > >

Public Member Functions

 DynamicAttrStorage (DynamicAttrDefinition *attrDef, ArrayRef< Attribute > params)
bool operator== (const KeyTy &key) const
- Public Member Functions inherited from mlir::AttributeStorage
const AbstractAttributegetAbstractAttribute () const
 Return the abstract descriptor for this attribute. More...

Static Public Member Functions

static llvm::hash_code hashKey (const KeyTy &key)
static DynamicAttrStorageconstruct (AttributeStorageAllocator &alloc, const KeyTy &key)

Public Attributes

 Definition of the type. More...
ArrayRef< Attributeparams
 The type parameters. 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

Storage of DynamicAttr.

Contains a pointer to the attribute definition and attribute parameters.

Definition at line 215 of file ExtensibleDialect.cpp.

Member Typedef Documentation

◆ KeyTy

Definition at line 216 of file ExtensibleDialect.cpp.

Constructor & Destructor Documentation

◆ DynamicAttrStorage()

mlir::detail::DynamicAttrStorage::DynamicAttrStorage ( DynamicAttrDefinition attrDef,
ArrayRef< Attribute params 

Definition at line 218 of file ExtensibleDialect.cpp.

Referenced by construct().

Member Function Documentation

◆ construct()

static DynamicAttrStorage* mlir::detail::DynamicAttrStorage::construct ( AttributeStorageAllocator alloc,
const KeyTy key 

◆ hashKey()

static llvm::hash_code mlir::detail::DynamicAttrStorage::hashKey ( const KeyTy key)

Definition at line 226 of file ExtensibleDialect.cpp.

References mlir::presburger::hash_value().

◆ operator==()

bool mlir::detail::DynamicAttrStorage::operator== ( const KeyTy key) const

Definition at line 222 of file ExtensibleDialect.cpp.

References attrDef, and params.

Member Data Documentation

◆ attrDef

DynamicAttrDefinition* mlir::detail::DynamicAttrStorage::attrDef

Definition of the type.

Definition at line 237 of file ExtensibleDialect.cpp.

Referenced by operator==().

◆ params

ArrayRef<Attribute> mlir::detail::DynamicAttrStorage::params

The type parameters.

Definition at line 240 of file ExtensibleDialect.cpp.

Referenced by operator==().

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