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

DynamicTypeDefinitiontypeDef
 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 96 of file ExtensibleDialect.cpp.

Member Typedef Documentation

◆ KeyTy

Definition at line 98 of file ExtensibleDialect.cpp.

Constructor & Destructor Documentation

◆ DynamicTypeStorage()

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

Definition at line 100 of file ExtensibleDialect.cpp.

Referenced by construct().

Member Function Documentation

◆ construct()

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

◆ hashKey()

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

Definition at line 108 of file ExtensibleDialect.cpp.

References mlir::polynomial::hash_value().

◆ operator==()

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

Definition at line 104 of file ExtensibleDialect.cpp.

References params, and typeDef.

Member Data Documentation

◆ params

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

The type parameters.

Definition at line 122 of file ExtensibleDialect.cpp.

Referenced by operator==().

◆ typeDef

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

Definition of the type.

Definition at line 119 of file ExtensibleDialect.cpp.

Referenced by operator==().


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