MLIR
20.0.0git
|
#include "mlir/TableGen/Attribute.h"
Public Member Functions | |
EnumAttr (const llvm::Record *record) | |
EnumAttr (const llvm::Record &record) | |
EnumAttr (const llvm::DefInit *init) | |
bool | isBitEnum () const |
StringRef | getEnumClassName () const |
StringRef | getCppNamespace () const |
StringRef | getUnderlyingType () const |
StringRef | getUnderlyingToSymbolFnName () const |
StringRef | getStringToSymbolFnName () const |
StringRef | getSymbolToStringFnName () const |
StringRef | getSymbolToStringFnRetType () const |
StringRef | getMaxEnumValFnName () const |
std::vector< EnumAttrCase > | getAllCases () const |
bool | genSpecializedAttr () const |
const llvm::Record * | getBaseAttrClass () const |
StringRef | getSpecializedAttrClassName () const |
bool | printBitEnumPrimaryGroups () 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 |
std::optional< Type > | getValueType () 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... | |
std::optional< StringRef > | getCppFunctionName () const |
Returns the name of the C++ function that should be generated for this constraint, or std::nullopt if no C++ function should be generated. More... | |
Kind | getKind () const |
const llvm::Record & | getDef () const |
Return the underlying def. More... | |
Static Public Member Functions | |
static bool | classof (const Attribute *attr) |
Static Public Member Functions inherited from mlir::tblgen::AttrConstraint | |
static bool | classof (const Constraint *c) |
Additional Inherited Members | |
Public Types inherited from mlir::tblgen::Constraint | |
enum | Kind { CK_Attr , CK_Region , CK_Successor , CK_Type , CK_Uncategorized } |
Protected Attributes inherited from mlir::tblgen::Constraint | |
const llvm::Record * | def |
Definition at line 163 of file Attribute.h.
|
explicit |
|
explicit |
|
explicit |
|
static |
Definition at line 176 of file Attribute.cpp.
References mlir::tblgen::AttrConstraint::isSubClassOf().
bool EnumAttr::genSpecializedAttr | ( | ) | const |
Definition at line 227 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
std::vector< EnumAttrCase > EnumAttr::getAllCases | ( | ) | const |
Definition at line 214 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
const Record * EnumAttr::getBaseAttrClass | ( | ) | const |
Definition at line 231 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getCppNamespace | ( | ) | const |
Definition at line 186 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getEnumClassName | ( | ) | const |
Definition at line 182 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getMaxEnumValFnName | ( | ) | const |
Definition at line 210 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getSpecializedAttrClassName | ( | ) | const |
Definition at line 235 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getStringToSymbolFnName | ( | ) | const |
Definition at line 198 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getSymbolToStringFnName | ( | ) | const |
Definition at line 202 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getSymbolToStringFnRetType | ( | ) | const |
Definition at line 206 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getUnderlyingToSymbolFnName | ( | ) | const |
Definition at line 194 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
StringRef EnumAttr::getUnderlyingType | ( | ) | const |
Definition at line 190 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.
bool EnumAttr::isBitEnum | ( | ) | const |
Definition at line 180 of file Attribute.cpp.
References mlir::tblgen::AttrConstraint::isSubClassOf().
bool EnumAttr::printBitEnumPrimaryGroups | ( | ) | const |
Definition at line 239 of file Attribute.cpp.
References mlir::tblgen::Constraint::def.