|
MLIR 22.0.0git
|
Trait implementing the MemoryEffectOpInterface for operations that "consume" their operands and produce new results. More...
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
Public Member Functions | |
| void | getEffects (SmallVectorImpl< MemoryEffects::EffectInstance > &effects) |
| This op "consumes" the operands by reading and freeing then, "produces" the results by allocating and writing it and reads/writes the payload IR in the process. | |
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, FunctionalStyleTransformOpTrait > | |
| Operation * | getOperation () |
| Return the ultimate Operation being worked on. | |
Trait implementing the MemoryEffectOpInterface for operations that "consume" their operands and produce new results.
Definition at line 1308 of file TransformInterfaces.h.
|
inline |
This op "consumes" the operands by reading and freeing then, "produces" the results by allocating and writing it and reads/writes the payload IR in the process.
Definition at line 1314 of file TransformInterfaces.h.
References mlir::transform::consumesHandle(), mlir::OpTrait::TraitBase< OpTy, FunctionalStyleTransformOpTrait >::getOperation(), mlir::transform::modifiesPayload(), and mlir::transform::producesHandle().
|
inlinestatic |
Checks that the op matches the expectations of this trait.
Definition at line 1321 of file TransformInterfaces.h.
References mlir::Operation::emitError(), mlir::OperationName::getInterface(), mlir::Operation::getName(), and success().