[Mlir-commits] [mlir] [mlir][Transforms] Add 1:N `matchAndRewrite` overload (PR #116470)

Matthias Springer llvmlistbot at llvm.org
Thu Nov 21 03:56:43 PST 2024


================
@@ -37,7 +37,8 @@ struct CallOpSignatureConversion : public OpConversionPattern<CallOp> {
     // Substitute with the new result types from the corresponding FuncType
     // conversion.
     rewriter.replaceOpWithNewOp<CallOp>(
-        callOp, callOp.getCallee(), convertedResults, adaptor.getOperands());
+        callOp, callOp.getCallee(), convertedResults,
+        getOneToOneAdaptorOperands(adaptor.getOperands()));
----------------
matthias-springer wrote:

Either one would work. See like 34 above: this pattern supports only 1:1 replacements.

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


More information about the Mlir-commits mailing list