[Mlir-commits] [mlir] [MLIR][TosaValidation] Enable float element-types on default (PR #114376)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 31 02:15:10 PDT 2024
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 7d1e283bd3b4440aea9ac375ca51e2ee6b0e86f5 34eae8c5a5a46bfd0d6bdfcd18941a7c8b23441d --extensions 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 e836c38355..03240fb96c 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
@@ -521,7 +521,8 @@ LogicalResult TosaValidation::applyVariableCheck(Operation *op) {
bool TosaValidation::isValidElementType(Type type) {
if (isa<FloatType>(type)) {
- if (!isEnabledProfile(TosaProfileEnum::Undefined) && !isEnabledProfile(TosaProfileEnum::MainInference))
+ if (!isEnabledProfile(TosaProfileEnum::Undefined) &&
+ !isEnabledProfile(TosaProfileEnum::MainInference))
return false;
return type.isF32() || type.isF16() || type.isBF16();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/114376
More information about the Mlir-commits
mailing list