We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1a203 commit 307cc49Copy full SHA for 307cc49
mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
@@ -410,6 +410,19 @@ def LinalgStructuredInterface : OpInterface<"LinalgOp"> {
410
return &this->getOperation()->getOpOperand(getNumInputs() + i);
411
}]
412
>,
413
+ InterfaceMethod<
414
+ /*desc=*/[{
415
+ Set the `i`-th output operand.
416
+ }],
417
+ /*retTy=*/"void",
418
+ /*methodName=*/"setOutputOperand",
419
+ /*args=*/(ins "int64_t":$i, "Value":$value),
420
+ /*methodBody=*/"",
421
+ /*defaultImplementation=*/[{
422
+ assert(i >= 0 && i < getNumOutputs());
423
+ this->getOperation()->setOperand(getNumInputs() + i, value);
424
+ }]
425
+ >,
426
InterfaceMethod<
427
/*desc=*/[{
428
Return the subset of output operands that are of buffer type.
0 commit comments