MLIR
20.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. More... | |
void | appendAttribute (StringRef name, bool optional, const AttributeConstraint &constraint) |
Append an attribute to this operation. More... | |
void | appendOperand (StringRef name, VariableLengthKind variableLengthKind, const TypeConstraint &constraint) |
Append an operand to this operation. More... | |
void | appendResult (StringRef name, VariableLengthKind variableLengthKind, const TypeConstraint &constraint) |
Append a result to this operation. More... | |
StringRef | getName () const |
Returns the name of the operation. More... | |
StringRef | getSummary () const |
Returns the summary of the operation. More... | |
StringRef | getDescription () const |
Returns the description of the operation. More... | |
StringRef | getNativeClassName () const |
Returns the native class name of the operation. More... | |
ArrayRef< Attribute > | getAttributes () const |
Returns the attributes of this operation. More... | |
ArrayRef< OperandOrResult > | getOperands () const |
Returns the operands of this operation. More... | |
ArrayRef< OperandOrResult > | getResults () const |
Returns the results of this operation. More... | |
bool | hasResultTypeInferrence () const |
Return if the operation is known to support result type inferrence. More... | |
Friends | |
class | Dialect |
Allow access to the private constructor. More... | |
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.
Allow access to the private constructor.
Definition at line 203 of file Operation.h.