|
MLIR 23.0.0git
|
This class provides an ODS representation of a specific operation. More...
#include "mlir/Tools/PDLL/ODS/Operation.h"
Public Member Functions | |
| SMRange | getLoc () const |
| Return the source location of this operation. | |
| void | appendAttribute (StringRef name, bool optional, const AttributeConstraint &constraint) |
| Append an attribute to this operation. | |
| void | appendOperand (StringRef name, VariableLengthKind variableLengthKind, const TypeConstraint &constraint) |
| Append an operand to this operation. | |
| void | appendResult (StringRef name, VariableLengthKind variableLengthKind, const TypeConstraint &constraint) |
| Append a result to this operation. | |
| StringRef | getName () const |
| Returns the name of the operation. | |
| StringRef | getSummary () const |
| Returns the summary of the operation. | |
| StringRef | getDescription () const |
| Returns the description of the operation. | |
| StringRef | getNativeClassName () const |
| Returns the native class name of the operation. | |
| ArrayRef< Attribute > | getAttributes () const |
| Returns the attributes of this operation. | |
| ArrayRef< OperandOrResult > | getOperands () const |
| Returns the operands of this operation. | |
| ArrayRef< OperandOrResult > | getResults () const |
| Returns the results of this operation. | |
| bool | hasResultTypeInferrence () const |
| Return if the operation is known to support result type inferrence. | |
Friends | |
| class | Dialect |
| Allow access to the private constructor. | |
This class provides an ODS representation of a specific operation.
This includes all of the information necessary for use by the PDL frontend for generating code for a pattern rewrite.
Definition at line 125 of file Operation.h.
|
inline |
Append an attribute to this operation.
Definition at line 131 of file Operation.h.
|
inline |
Append an operand to this operation.
Definition at line 137 of file Operation.h.
|
inline |
Append a result to this operation.
Definition at line 144 of file Operation.h.
Returns the attributes of this operation.
Definition at line 162 of file Operation.h.
|
inline |
Returns the description of the operation.
Definition at line 156 of file Operation.h.
|
inline |
Return the source location of this operation.
Definition at line 128 of file Operation.h.
|
inline |
Returns the name of the operation.
Definition at line 150 of file Operation.h.
|
inline |
Returns the native class name of the operation.
Definition at line 159 of file Operation.h.
|
inline |
Returns the operands of this operation.
Definition at line 165 of file Operation.h.
|
inline |
Returns the results of this operation.
Definition at line 168 of file Operation.h.
|
inline |
Returns the summary of the operation.
Definition at line 153 of file Operation.h.
|
inline |
Return if the operation is known to support result type inferrence.
Definition at line 171 of file Operation.h.
|
friend |
Allow access to the private constructor.
Definition at line 203 of file Operation.h.
References Dialect.
Referenced by Dialect.