MLIR
21.0.0git
|
#include "mlir/TableGen/Property.h"
Public Member Functions | |
Property (const llvm::Record *def) | |
Property (const llvm::DefInit *init) | |
Property (const llvm::Record *maybeDef, StringRef summary, StringRef description, StringRef storageType, StringRef interfaceType, StringRef convertFromStorageCall, StringRef assignToStorageCall, StringRef convertToAttributeCall, StringRef convertFromAttributeCall, StringRef parserCall, StringRef optionalParserCall, StringRef printerCall, StringRef readFromMlirBytecodeCall, StringRef writeToMlirBytecodeCall, StringRef hashPropertyCall, StringRef defaultValue, StringRef storageTypeValueOverride) | |
StringRef | getSummary () const |
StringRef | getDescription () const |
StringRef | getStorageType () const |
StringRef | getInterfaceType () const |
StringRef | getConvertFromStorageCall () const |
StringRef | getAssignToStorageCall () const |
StringRef | getConvertToAttributeCall () const |
StringRef | getConvertFromAttributeCall () const |
Pred | getPredicate () const |
StringRef | getParserCall () const |
bool | hasOptionalParser () const |
StringRef | getOptionalParserCall () const |
StringRef | getPrinterCall () const |
StringRef | getReadFromMlirBytecodeCall () const |
StringRef | getWriteToMlirBytecodeCall () const |
StringRef | getHashPropertyCall () const |
bool | hasDefaultValue () const |
StringRef | getDefaultValue () const |
bool | hasStorageTypeValueOverride () const |
StringRef | getStorageTypeValueOverride () const |
StringRef | getPropertyDefName () const |
Property | getBaseProperty () const |
bool | isSubClassOf (StringRef className) const |
![]() | |
StringRef | getInterfaceType () const |
Constraint (const llvm::Record *record, Kind kind) | |
Constraint (const llvm::Record *record) | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
enum | Kind { CK_Attr , CK_Prop , CK_Region , CK_Successor , CK_Type , CK_Uncategorized } |
![]() | |
static bool | classof (const Constraint *c) |
![]() | |
const llvm::Record * | def |
Definition at line 46 of file Property.h.
|
explicit |
Referenced by getBaseProperty().
|
explicit |
Property::Property | ( | const llvm::Record * | maybeDef, |
StringRef | summary, | ||
StringRef | description, | ||
StringRef | storageType, | ||
StringRef | interfaceType, | ||
StringRef | convertFromStorageCall, | ||
StringRef | assignToStorageCall, | ||
StringRef | convertToAttributeCall, | ||
StringRef | convertFromAttributeCall, | ||
StringRef | parserCall, | ||
StringRef | optionalParserCall, | ||
StringRef | printerCall, | ||
StringRef | readFromMlirBytecodeCall, | ||
StringRef | writeToMlirBytecodeCall, | ||
StringRef | hashPropertyCall, | ||
StringRef | defaultValue, | ||
StringRef | storageTypeValueOverride | ||
) |
Definition at line 64 of file Property.cpp.
|
inline |
Definition at line 78 of file Property.h.
Property Property::getBaseProperty | ( | ) | const |
Definition at line 108 of file Property.cpp.
References mlir::tblgen::Constraint::def, and Property().
Referenced by getPropertyDefName().
|
inline |
Definition at line 86 of file Property.h.
|
inline |
Definition at line 74 of file Property.h.
|
inline |
Definition at line 82 of file Property.h.
|
inline |
Definition at line 126 of file Property.h.
|
inline |
Definition at line 64 of file Property.h.
|
inline |
Definition at line 120 of file Property.h.
|
inline |
Definition at line 70 of file Property.h.
Referenced by canUniquePropConstraint().
|
inline |
Definition at line 102 of file Property.h.
|
inline |
Definition at line 95 of file Property.h.
Pred Property::getPredicate | ( | ) | const |
Definition at line 99 of file Property.cpp.
References mlir::tblgen::Constraint::def.
|
inline |
Definition at line 105 of file Property.h.
StringRef Property::getPropertyDefName | ( | ) | const |
Definition at line 92 of file Property.cpp.
References mlir::tblgen::Constraint::def, and getBaseProperty().
|
inline |
Definition at line 109 of file Property.h.
|
inline |
Definition at line 67 of file Property.h.
|
inline |
Definition at line 134 of file Property.h.
|
inline |
Definition at line 61 of file Property.h.
|
inline |
Definition at line 115 of file Property.h.
|
inline |
Definition at line 123 of file Property.h.
|
inline |
Definition at line 98 of file Property.h.
|
inline |
Definition at line 130 of file Property.h.
bool Property::isSubClassOf | ( | StringRef | className | ) | const |
Definition at line 116 of file Property.cpp.
References mlir::tblgen::Constraint::def.
Referenced by mlir::tblgen::ConstantProp::classof(), and mlir::tblgen::ConstantProp::ConstantProp().