[Mlir-commits] [mlir] [mlir] Add `res()` method to `linalg::ContractionOpInterface` (PR #76539)
Jerry Wu
llvmlistbot at llvm.org
Wed Jan 3 11:04:30 PST 2024
================
@@ -54,6 +54,14 @@ def LinalgContractionOpInterface : OpInterface<"ContractionOpInterface"> {
return $_op.getOperation()->getOperand(1);
}]>,
InterfaceMethod<
+ /*desc=*/"Returns the result value.",
+ /*retTy=*/"OpResult",
+ /*methodName=*/"res",
+ /*args=*/(ins),
+ /*methodBody=*/[{
+ return $_op.getOperation()->getResult(1);
----------------
pzread wrote:
Ah, it should be 0. A unit test would catch this : ) Fixed.
https://github.com/llvm/llvm-project/pull/76539
More information about the Mlir-commits
mailing list