diff --git a/mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td b/mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td --- a/mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td +++ b/mlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td @@ -35,6 +35,22 @@ let cppNamespace = "::mlir::linalg"; let verify = [{ return detail::verifyContractionInterface($_op); }]; let methods = [ + InterfaceMethod< + /*desc=*/"Returns the left-hand side operand.", + /*retTy=*/"Value", + /*methodName=*/"lhs", + /*args=*/(ins), + /*methodBody=*/[{ + return $_op.getOperation()->getOperand(0); + }]>, + InterfaceMethod< + /*desc=*/"Returns the right-hand side operand.", + /*retTy=*/"Value", + /*methodName=*/"rhs", + /*args=*/(ins), + /*methodBody=*/[{ + return $_op.getOperation()->getOperand(1); + }]>, InterfaceMethod< /*desc=*/[{ Returns whether the given op has indexing maps that correspond to a