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

Storage of DynamicType. More...

+ Inheritance diagram for mlir::detail::DynamicTypeStorage:

Public Types

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

Public Member Functions

 DynamicTypeStorage (DynamicTypeDefinition *typeDef, ArrayRef< Attribute > params)
bool operator== (const KeyTy &key) const
- Public Member Functions inherited from mlir::TypeStorage
const AbstractTypegetAbstractType ()
 Return the abstract type descriptor for this type. More...

Static Public Member Functions

static llvm::hash_code hashKey (const KeyTy &key)
static DynamicTypeStorageconstruct (TypeStorageAllocator &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::TypeStorage
 TypeStorage ()
 This constructor is used by derived classes as part of the TypeUniquer. More...
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()=default

Detailed Description

Storage of DynamicType.

Contains a pointer to the type definition and type parameters.

Definition at line 97 of file ExtensibleDialect.cpp.

Member Typedef Documentation

◆ KeyTy

Definition at line 99 of file ExtensibleDialect.cpp.

Constructor & Destructor Documentation

◆ DynamicTypeStorage()

mlir::detail::DynamicTypeStorage::DynamicTypeStorage ( DynamicTypeDefinition typeDef,
ArrayRef< Attribute params 

Definition at line 101 of file ExtensibleDialect.cpp.

Referenced by construct().

Member Function Documentation

◆ construct()

static DynamicTypeStorage* mlir::detail::DynamicTypeStorage::construct ( TypeStorageAllocator alloc,
const KeyTy key 

◆ hashKey()

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

Definition at line 109 of file ExtensibleDialect.cpp.

References mlir::presburger::hash_value().

◆ operator==()

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

Definition at line 105 of file ExtensibleDialect.cpp.

References params, and typeDef.

Member Data Documentation

◆ params

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

The type parameters.

Definition at line 123 of file ExtensibleDialect.cpp.

Referenced by operator==().

◆ typeDef

DynamicTypeDefinition* mlir::detail::DynamicTypeStorage::typeDef

Definition of the type.

Definition at line 120 of file ExtensibleDialect.cpp.

Referenced by operator==().

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