[Mlir-commits] [mlir] make transform.split_handle accept any handle kind (PR #118752)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 4 23:23:00 PST 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 f7560ee97b7441eb3f5b2d0744aad857fafa5855 ae91a4c8d82c8ef3f625df53ebc77e1efb0f8406 --extensions cpp -- 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 68d1f2aef6..1f0f183e29 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -2434,8 +2434,7 @@ transform::SplitHandleOp::apply(transform::TransformRewriter &rewriter,
   auto produceNumOpsError = [&]() {
     return emitSilenceableError()
            << getHandle() << " expected to contain " << this->getNumResults()
-           << " payloads but it contains " << numPayloads
-           << " payloads";
+           << " payloads but it contains " << numPayloads << " payloads";
   };
 
   // Fail if there are more payload ops than results and no overflow result was
@@ -2480,7 +2479,8 @@ transform::SplitHandleOp::apply(transform::TransformRewriter &rewriter,
 
   // Set transform op results.
   for (auto &&it : llvm::enumerate(resultHandles))
-    results.setMappedValues(llvm::cast<OpResult>(getResult(it.index())), it.value());
+    results.setMappedValues(llvm::cast<OpResult>(getResult(it.index())),
+                            it.value());
 
   return DiagnosedSilenceableFailure::success();
 }

``````````

</details>


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


More information about the Mlir-commits mailing list