[Mlir-commits] [mlir] [MLIR][TOSA] Make RESCALE op input_unsigned and output_unsigned attributes required (PR #129339)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 28 15:54:48 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 2871f6905257169f8a49b13289421a668bf24051 eff24c3070d2bd62d6cef88ad0661bd89c32dc02 --extensions cpp -- mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp b/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
index 93ad9d124d..a97711b51f 100644
--- a/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
+++ b/mlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
@@ -165,7 +165,8 @@ ConvertTosaConv2DOp::matchAndRewrite(Operation *op,
// Obtain the quantized scale = multiplier and shift.
computeMultiplierAndShift(opTensorScale, multiplier, shift, 32);
- bool input_unsigned = newTosaConv2DOp.getResult().getType().isUnsignedInteger();
+ bool input_unsigned =
+ newTosaConv2DOp.getResult().getType().isUnsignedInteger();
bool output_unsigned = outputType.isUnsignedInteger();
auto newTosaRescaleOp = rewriter.create<tosa::RescaleOp>(
``````````
</details>
https://github.com/llvm/llvm-project/pull/129339
More information about the Mlir-commits
mailing list