My Project
Public Member Functions | Protected Member Functions | List of all members
mlir::AttributeStorage Class Reference

#include <AttributeSupport.h>

Inheritance diagram for mlir::AttributeStorage:
Inheritance graph
[legend]
Collaboration diagram for mlir::AttributeStorage:
Collaboration graph
[legend]

Public Member Functions

Type getType () const
 Get the type of this attribute. More...
 
DialectgetDialect () const
 Get the dialect of this attribute. More...
 
- Public Member Functions inherited from mlir::StorageUniquer::BaseStorage
unsigned getKind () const
 Get the kind classification of this storage. More...
 

Protected Member Functions

 AttributeStorage (Type type)
 
 AttributeStorage ()
 
void setType (Type type)
 Set the type of this attribute. More...
 
void initializeDialect (Dialect &newDialect)
 
- Protected Member Functions inherited from mlir::StorageUniquer::BaseStorage
 BaseStorage ()
 

Detailed Description

Base storage class appearing in an attribute. Derived storage classes should only be constructed within the context of the AttributeUniquer.

Constructor & Destructor Documentation

◆ AttributeStorage() [1/2]

AttributeStorage::AttributeStorage ( Type  type)
protected

Construct a new attribute storage instance with the given type. Note: All attributes require a valid type. If no type is provided here, the type of the attribute will automatically default to NoneType upon initialization in the uniquer.

◆ AttributeStorage() [2/2]

AttributeStorage::AttributeStorage ( )
protected

Member Function Documentation

◆ getDialect()

Dialect& mlir::AttributeStorage::getDialect ( ) const
inline

Get the dialect of this attribute.

◆ getType()

Type AttributeStorage::getType ( ) const

Get the type of this attribute.

◆ initializeDialect()

void mlir::AttributeStorage::initializeDialect ( Dialect newDialect)
inlineprotected

◆ setType()

void AttributeStorage::setType ( Type  type)
protected

Set the type of this attribute.


The documentation for this class was generated from the following files: