[Mlir-commits] [mlir] [mlir][Transform] Extend transform.foreach to take multiple arguments (PR #93705)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 30 09:51:44 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 2ceec68e1630b40a37448c44fea63f9114848235 8dbde3169885fcec02e01434bf19cfd7193948af -- mlir/lib/Dialect/Transform/IR/TransformOps.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
index 6f51cdeb04..1a7ec030f0 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -1415,7 +1415,7 @@ transform::ForeachOp::apply(transform::TransformRewriter &rewriter,
   for (size_t iterIdx = 0; iterIdx < numIterations; iterIdx++) {
     auto scope = state.make_region_scope(getBody());
     // Set up arguments to the region's block.
-    for (auto && [argIdx, blockArg] : llvm::enumerate(blockArguments)) {
+    for (auto &&[argIdx, blockArg] : llvm::enumerate(blockArguments)) {
       MappedValue argument = payloads[argIdx][iterIdx];
       // Note that each blockArg's handle gets associated with just a single
       // element from the corresponding target's payload.

``````````

</details>


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


More information about the Mlir-commits mailing list