[Mlir-commits] [mlir] [mlir] Dialect conversion: Print note when replacement types do not match legalized types (PR #161802)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 3 01:25:11 PDT 2025


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 origin/main HEAD --extensions cpp -- mlir/lib/Transforms/Utils/DialectConversion.cpp
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/mlir/lib/Transforms/Utils/DialectConversion.cpp b/mlir/lib/Transforms/Utils/DialectConversion.cpp
index 65bc4df95..3a23bbfd7 100644
--- a/mlir/lib/Transforms/Utils/DialectConversion.cpp
+++ b/mlir/lib/Transforms/Utils/DialectConversion.cpp
@@ -1870,7 +1870,7 @@ void ConversionPatternRewriterImpl::replaceOp(
         Type resultType = result.getType();
         auto logProlog = [&, repls = repls]() {
           logger.startLine() << "   Note: Replacing op result of type "
-                              << resultType << " with value(s) of type (";
+                             << resultType << " with value(s) of type (";
           llvm::interleaveComma(repls, logger.getOStream(), [&](Value v) {
             logger.getOStream() << v.getType();
           });

``````````

</details>


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


More information about the Mlir-commits mailing list