[Mlir-commits] [mlir] [TOSA] Handle dialect check more efficiently (PR #120960)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Dec 23 04:05:44 PST 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 ce393beddfb810204ac0618c2fe365d4d21f5c32 cee2f4afa48066a79a4a17be8000e4c17f319d68 --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 c58f892721..8588c878bf 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
@@ -543,7 +543,7 @@ bool TosaValidation::isValidElementType(Type type) {
void TosaValidation::runOnOperation() {
configLevelAndProfile();
- TosaDialect* tosaDialect = getContext().getLoadedDialect<TosaDialect>();
+ TosaDialect *tosaDialect = getContext().getLoadedDialect<TosaDialect>();
if (!tosaDialect)
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/120960
More information about the Mlir-commits
mailing list