MLIR  19.0.0git
Public Member Functions | List of all members
mlir::tblgen::Attribute Class Reference

#include "mlir/TableGen/Attribute.h"

+ Inheritance diagram for mlir::tblgen::Attribute:

Public Member Functions

 Attribute (const llvm::Record *record)
 
 Attribute (const llvm::DefInit *init)
 
StringRef getStorageType () const
 
StringRef getReturnType () const
 
std::optional< TypegetValueType () const
 
StringRef getConvertFromStorageCall () const
 
bool isConstBuildable () const
 
StringRef getConstBuilderTemplate () const
 
Attribute getBaseAttr () const
 
bool hasDefaultValue () const
 
StringRef getDefaultValue () const
 
bool isOptional () const
 
bool isDerivedAttr () const
 
bool isTypeAttr () const
 
bool isSymbolRefAttr () const
 
bool isEnumAttr () const
 
StringRef getAttrDefName () const
 
StringRef getDerivedCodeBody () const
 
Dialect getDialect () const
 
const llvm::Record & getDef () const
 
- Public Member Functions inherited from mlir::tblgen::AttrConstraint
bool isSubClassOf (StringRef className) const
 
 Constraint (const llvm::Record *record, Kind kind)
 
 Constraint (const llvm::Record *record)
 
- Public Member Functions inherited from mlir::tblgen::Constraint
 Constraint (const llvm::Record *record, Kind kind)
 
 Constraint (const llvm::Record *record)
 
bool operator== (const Constraint &that)
 Constraints are pointer-comparable. More...
 
bool operator!= (const Constraint &that)
 
Pred getPredicate () const
 
std::string getConditionTemplate () const
 
StringRef getSummary () const
 
StringRef getDescription () const
 
StringRef getDefName () const
 Returns the name of the TablGen def of this constraint. More...
 
std::string getUniqueDefName () const
 Returns a unique name for the TablGen def of this constraint. More...
 
Kind getKind () const
 
const llvm::Record & getDef () const
 Return the underlying def. More...
 

Additional Inherited Members

- Public Types inherited from mlir::tblgen::Constraint
enum  Kind {
  CK_Attr , CK_Region , CK_Successor , CK_Type ,
  CK_Uncategorized
}
 
- Static Public Member Functions inherited from mlir::tblgen::AttrConstraint
static bool classof (const Constraint *c)
 
- Protected Attributes inherited from mlir::tblgen::Constraint
const llvm::Record * def
 

Detailed Description

Definition at line 47 of file Attribute.h.

Constructor & Destructor Documentation

◆ Attribute() [1/2]

mlir::tblgen::Attribute::Attribute ( const llvm::Record *  record)
explicit

Referenced by getBaseAttr().

◆ Attribute() [2/2]

mlir::tblgen::Attribute::Attribute ( const llvm::DefInit *  init)
explicit

Member Function Documentation

◆ getAttrDefName()

StringRef Attribute::getAttrDefName ( ) const

Definition at line 114 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getBaseAttr().

◆ getBaseAttr()

Attribute Attribute::getBaseAttr ( ) const

Definition at line 94 of file Attribute.cpp.

References Attribute(), and mlir::tblgen::Constraint::def.

Referenced by getAttrDefName().

◆ getConstBuilderTemplate()

StringRef Attribute::getConstBuilderTemplate ( ) const

Definition at line 89 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ getConvertFromStorageCall()

StringRef Attribute::getConvertFromStorageCall ( ) const

Definition at line 79 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ getDef()

const llvm::Record & Attribute::getDef ( ) const

Definition at line 135 of file Attribute.cpp.

References mlir::tblgen::Constraint::def.

◆ getDefaultValue()

StringRef Attribute::getDefaultValue ( ) const

Definition at line 107 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ getDerivedCodeBody()

StringRef Attribute::getDerivedCodeBody ( ) const

Definition at line 121 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and isDerivedAttr().

◆ getDialect()

Dialect mlir::tblgen::Attribute::getDialect ( ) const

◆ getReturnType()

StringRef Attribute::getReturnType ( ) const

Definition at line 66 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ getStorageType()

StringRef Attribute::getStorageType ( ) const

Definition at line 58 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ getValueType()

std::optional< Type > Attribute::getValueType ( ) const

Definition at line 73 of file Attribute.cpp.

References mlir::tblgen::Constraint::def.

◆ hasDefaultValue()

bool Attribute::hasDefaultValue ( ) const

Definition at line 102 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ isConstBuildable()

bool Attribute::isConstBuildable ( ) const

Definition at line 84 of file Attribute.cpp.

References mlir::tblgen::Constraint::def, and getValueAsString().

◆ isDerivedAttr()

bool Attribute::isDerivedAttr ( ) const

Definition at line 45 of file Attribute.cpp.

References mlir::tblgen::AttrConstraint::isSubClassOf().

Referenced by getDerivedCodeBody().

◆ isEnumAttr()

bool Attribute::isEnumAttr ( ) const

Definition at line 56 of file Attribute.cpp.

References mlir::tblgen::AttrConstraint::isSubClassOf().

◆ isOptional()

bool mlir::tblgen::Attribute::isOptional ( ) const

◆ isSymbolRefAttr()

bool Attribute::isSymbolRefAttr ( ) const

◆ isTypeAttr()

bool Attribute::isTypeAttr ( ) const

Definition at line 47 of file Attribute.cpp.

References mlir::tblgen::AttrConstraint::isSubClassOf().


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