[Mlir-commits] [mlir] [mlir][tosa] Enhance error_if and verify checks for RESCALE Op (PR #137021)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 23 10:12:34 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 HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/Tosa/IR/TosaOps.cpp mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
index fa337f350..06c203692 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
@@ -1055,7 +1055,6 @@ bool checkErrorIfRescale(Operation *op) {
   bool scale32 = rescale.getScale32();
   auto roundingMode = rescale.getRoundingMode();
 
-
   // ERROR_IF(scale32 && is_same<in_t,i48_t>())
   if (scale32 && inWidth == 48) {
     op->emitOpError() << "scale32 is not allowed with 48-bit input.";

``````````

</details>


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


More information about the Mlir-commits mailing list