MLIR  20.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

DynamicAttrDefinitionattrDef
 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 214 of file ExtensibleDialect.cpp.

Member Typedef Documentation

◆ KeyTy

Definition at line 215 of file ExtensibleDialect.cpp.

Constructor & Destructor Documentation

◆ DynamicAttrStorage()

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

Definition at line 217 of file ExtensibleDialect.cpp.

Referenced by construct().

Member Function Documentation

◆ construct()

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

◆ hashKey()

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

Definition at line 225 of file ExtensibleDialect.cpp.

References mlir::polynomial::hash_value().

◆ operator==()

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

Definition at line 221 of file ExtensibleDialect.cpp.

References attrDef, and params.

Member Data Documentation

◆ attrDef

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

Definition of the type.

Definition at line 236 of file ExtensibleDialect.cpp.

Referenced by operator==().

◆ params

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

The type parameters.

Definition at line 239 of file ExtensibleDialect.cpp.

Referenced by operator==().


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