|
MLIR 22.0.0git
|
Trait implementing the TransformOpInterface for operations applying a transformation to a single operation handle and producing an arbitrary number of handles and parameter values. More...
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
Public Member Functions | |
| DiagnosedSilenceableFailure | apply (transform::TransformRewriter &rewriter, TransformResults &transformResults, TransformState &state) |
| Calls applyToOne for every payload operation associated with the operand of this transform IR op, the following case disjunction happens: | |
Static Public Member Functions | |
| static LogicalResult | verifyTrait (Operation *op) |
| Checks that the op matches the expectations of this trait. | |
Additional Inherited Members | |
| Protected Member Functions inherited from mlir::OpTrait::TraitBase< OpTy, TransformEachOpTrait > | |
| Operation * | getOperation () |
| Return the ultimate Operation being worked on. | |
Trait implementing the TransformOpInterface for operations applying a transformation to a single operation handle and producing an arbitrary number of handles and parameter values.
The op must implement a method with the following signature:
The transform op having this trait is expected to have a single operand.
Definition at line 1217 of file TransformInterfaces.h.
| mlir::DiagnosedSilenceableFailure mlir::transform::TransformEachOpTrait< OpTy >::apply | ( | transform::TransformRewriter & | rewriter, |
| TransformResults & | transformResults, | ||
| TransformState & | state ) |
Calls applyToOne for every payload operation associated with the operand of this transform IR op, the following case disjunction happens:
Definition at line 1557 of file TransformInterfaces.h.
References mlir::transform::detail::applyTransformToEach(), mlir::transform::detail::checkNestedConsumption(), mlir::DiagnosedSilenceableFailure::definiteFailure(), mlir::transform::TransformOptions::getExpensiveChecksEnabled(), mlir::OpTrait::TraitBase< OpTy, TransformEachOpTrait >::getOperation(), mlir::transform::TransformState::getOptions(), mlir::transform::TransformState::getPayloadOps(), mlir::transform::isHandleConsumed(), result, mlir::transform::TransformResults::set(), mlir::transform::detail::setApplyToOneResults(), mlir::transform::TransformResults::setParams(), mlir::transform::TransformResults::setValues(), mlir::DiagnosedSilenceableFailure::success(), and ValueRange.
|
static |
Checks that the op matches the expectations of this trait.
Definition at line 1613 of file TransformInterfaces.h.
References mlir::Operation::emitError(), mlir::OperationName::getInterface(), mlir::Operation::getName(), and success().