[Mlir-commits] [mlir] [tosa] : Get quantized element type with sign info. (PR #169387)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Nov 24 10:36:57 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 origin/main HEAD --extensions cpp,h -- mlir/include/mlir/Dialect/Tosa/Utils/QuantUtils.h mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp mlir/lib/Dialect/Tosa/IR/TosaOps.cpp mlir/lib/Dialect/Tosa/Utils/QuantUtils.cpp --diff_from_common_commit
``````````
: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/include/mlir/Dialect/Tosa/Utils/QuantUtils.h b/mlir/include/mlir/Dialect/Tosa/Utils/QuantUtils.h
index 0e751911d..e9ad78694 100644
--- a/mlir/include/mlir/Dialect/Tosa/Utils/QuantUtils.h
+++ b/mlir/include/mlir/Dialect/Tosa/Utils/QuantUtils.h
@@ -19,7 +19,7 @@
#include "mlir/Dialect/Quant/Utils/FakeQuantSupport.h"
#include "mlir/Dialect/Quant/Utils/UniformSupport.h"
-namespace mlir {
+namespace mlir {
namespace tosa {
//===----------------------------------------------------------------------===//
@@ -88,8 +88,7 @@ TypeAttr buildQTypeAttrFromMinMax(OpBuilder builder, Type inputDType,
IntegerAttr quantBits, int filterQuantDim,
bool isSigned, BoolAttr narrowRange);
-Type
-getStorageElementTypeFromQuantized(quant::QuantizedType quantizedType);
+Type getStorageElementTypeFromQuantized(quant::QuantizedType quantizedType);
} // namespace tosa
} // namespace mlir
``````````
</details>
https://github.com/llvm/llvm-project/pull/169387
More information about the Mlir-commits
mailing list