MLIR
20.0.0git
|
#include "mlir/TableGen/Type.h"
Public Member Functions | |
TypeConstraint (const llvm::DefInit *record) | |
bool | isOptional () const |
bool | isVariadic () const |
bool | isVariadicOfVariadic () const |
StringRef | getVariadicOfVariadicSegmentSizeAttr () const |
bool | isVariableLength () const |
std::optional< StringRef > | getBuilderCall () const |
StringRef | getCppType () 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 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 |
TypeConstraint::TypeConstraint | ( | const llvm::DefInit * | record | ) |
|
inlinestatic |
Definition at line 36 of file Type.h.
References mlir::tblgen::Constraint::CK_Type, and mlir::tblgen::Constraint::getKind().
Constraint::Constraint |
Definition at line 38 of file Constraint.cpp.
|
inline |
Definition at line 36 of file Constraint.h.
std::optional< StringRef > TypeConstraint::getBuilderCall | ( | ) | const |
Definition at line 45 of file Type.cpp.
References mlir::tblgen::Constraint::def, and isVariableLength().
StringRef TypeConstraint::getCppType | ( | ) | const |
Definition at line 64 of file Type.cpp.
References mlir::tblgen::Constraint::def.
StringRef TypeConstraint::getVariadicOfVariadicSegmentSizeAttr | ( | ) | const |
Definition at line 38 of file Type.cpp.
References mlir::tblgen::Constraint::def, and isVariadicOfVariadic().
bool TypeConstraint::isOptional | ( | ) | const |
Definition at line 26 of file Type.cpp.
References mlir::tblgen::Constraint::def.
Referenced by mlir::tblgen::NamedTypeConstraint::isOptional(), and isVariableLength().
|
inline |
Definition at line 53 of file Type.h.
References isOptional(), and isVariadic().
Referenced by getBuilderCall(), mlir::tblgen::Operator::getNumVariableLengthOperands(), and mlir::tblgen::Operator::getNumVariableLengthResults().
bool TypeConstraint::isVariadic | ( | ) | const |
Definition at line 30 of file Type.cpp.
References mlir::tblgen::Constraint::def.
Referenced by isVariableLength(), and mlir::tblgen::NamedTypeConstraint::isVariadic().
bool TypeConstraint::isVariadicOfVariadic | ( | ) | const |
Definition at line 34 of file Type.cpp.
References mlir::tblgen::Constraint::def.
Referenced by getVariadicOfVariadicSegmentSizeAttr(), and mlir::tblgen::NamedTypeConstraint::isVariadicOfVariadic().