[Mlir-commits] [mlir] [mlir] Add `res()` method to `linalg::ContractionOpInterface` (PR #76539)

Mehdi Amini llvmlistbot at llvm.org
Mon Jan 1 12:37:21 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);
----------------
joker-eph wrote:

What is result 0?

https://github.com/llvm/llvm-project/pull/76539


More information about the Mlir-commits mailing list