[Mlir-commits] [mlir] [mlir] make transform.foreach_match forward arguments (PR #89920)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Thu May 2 10:25:59 PDT 2024


================
@@ -1030,6 +1041,16 @@ transform::ForeachMatchOp::apply(transform::TransformRewriter &rewriter,
 
   DiagnosedSilenceableFailure overallDiag =
       DiagnosedSilenceableFailure::success();
+
+  SmallVector<SmallVector<MappedValue>> matchInputMapping;
+  SmallVector<SmallVector<MappedValue>> matchOutputMapping;
+  SmallVector<SmallVector<MappedValue>> actionResultMapping;
+  matchInputMapping.emplace_back();
----------------
ftynse wrote:

Yes, because we also need to map the op that is being matched before the payloads that are forwarded. Added a comment.

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


More information about the Mlir-commits mailing list