MLIR  16.0.0git
Public Member Functions | List of all members
mlir::tblgen::EnumAttrCase Class Reference

#include "mlir/TableGen/Attribute.h"

+ Inheritance diagram for mlir::tblgen::EnumAttrCase:
+ Collaboration diagram for mlir::tblgen::EnumAttrCase:

Public Member Functions

 EnumAttrCase (const llvm::Record *record)
 
 EnumAttrCase (const llvm::DefInit *init)
 
StringRef getSymbol () const
 
StringRef getStr () const
 
int64_t getValue () const
 
const llvm::Record & getDef () const
 
- Public Member Functions inherited from mlir::tblgen::Attribute
 Attribute (const llvm::Record *record)
 
 Attribute (const llvm::DefInit *init)
 
StringRef getStorageType () const
 
StringRef getReturnType () const
 
llvm::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
 
- 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
 

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 142 of file Attribute.h.

Constructor & Destructor Documentation

◆ EnumAttrCase() [1/2]

EnumAttrCase::EnumAttrCase ( const llvm::Record *  record)
explicit

Definition at line 150 of file Attribute.cpp.

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

◆ EnumAttrCase() [2/2]

EnumAttrCase::EnumAttrCase ( const llvm::DefInit *  init)
explicit

Definition at line 155 of file Attribute.cpp.

Member Function Documentation

◆ getDef()

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

Definition at line 166 of file Attribute.cpp.

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

◆ getStr()

StringRef EnumAttrCase::getStr ( ) const

Definition at line 162 of file Attribute.cpp.

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

◆ getSymbol()

StringRef EnumAttrCase::getSymbol ( ) const

Definition at line 158 of file Attribute.cpp.

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

◆ getValue()

int64_t EnumAttrCase::getValue ( ) const

Definition at line 164 of file Attribute.cpp.

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


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