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

Nicolas Vasilache llvmlistbot at llvm.org
Thu May 2 09:56:00 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();
----------------
nicolasvasilache wrote:

do we need this outide of the call to `prepareValueMappings` given that `prepareValueMappings` immediately resizes?

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


More information about the Mlir-commits mailing list