[Mlir-commits] [mlir] [mlir][TosaToLinalg] Fix TosaToLinalg to restrict `tosa.cast` types to integer or float (PR #128859)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Feb 26 03:13:12 PST 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 13245cea11050f875891389ce36115c78aaedd4a a68b9667f4cb4ed5343a84644149b230c220de5e --extensions cpp -- mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
index e5994cdc77..dfab37497d 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
@@ -525,7 +525,7 @@ static Value createLinalgBodyCalculationForElementwiseOp(
     Type srcTy = elementTy;
     Type dstTy = resultTypes.front();
     if (!srcTy.isIntOrFloat() || !dstTy.isIntOrFloat()) {
-      (void)rewriter.notifyMatchFailure(op,"unsupported type");
+      (void)rewriter.notifyMatchFailure(op, "unsupported type");
       return nullptr;
     }
 

``````````

</details>


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


More information about the Mlir-commits mailing list