[Mlir-commits] [mlir] Change 758703 (PR #145075)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Jun 20 10:14:33 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 h,cpp -- mlir/lib/Dialect/Tosa/Transforms/TosaInputShape.cpp mlir/include/mlir/Dialect/Tosa/Transforms/Passes.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaInputShape.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaInputShape.cpp
index 12b644589..a78534dae 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaInputShape.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaInputShape.cpp
@@ -105,7 +105,8 @@ public:
BlockArgument block_arg = block.getArgument(argnum);
Type arg_type = block_arg.getType();
TensorType tensor_type = cast<TensorType>(arg_type);
- if (failed(mlir::verifyCompatibleShape(tensor_type.getShape(), shape))) {
+ if (failed(
+ mlir::verifyCompatibleShape(tensor_type.getShape(), shape))) {
func->emitError()
<< "arg" << argnum << " has incompatible shape with input shape.";
return;
@@ -132,7 +133,8 @@ public:
}
auto tensor_type = cast<TensorType>(inputs[argnum]);
- if (failed(mlir::verifyCompatibleShape(tensor_type.getShape(), shape))) {
+ if (failed(mlir::verifyCompatibleShape(tensor_type.getShape(),
+ shape))) {
funcOp->emitError()
<< "arg" << argnum
<< " has incompatible shape with input shape.";
``````````
</details>
https://github.com/llvm/llvm-project/pull/145075
More information about the Mlir-commits
mailing list