[Mlir-commits] [mlir] [mlir][tosa] Enhance verify checks for PAD Op (PR #137177)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Apr 25 08:52:55 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 cpp -- mlir/lib/Dialect/Tosa/IR/TosaOps.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/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
index 59f909e44..d535009f3 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -1551,9 +1551,9 @@ LogicalResult tosa::PadOp::verify() {
if ((padStart < 0 && padStart != -1) || (padEnd < 0 && padEnd != -1)) {
return emitOpError()
- << "invalid padding values at dimension " << i
- << ": values must be non-negative or -1 for dynamic padding, got ["
- << padStart << ", " << padEnd << "]";
+ << "invalid padding values at dimension " << i
+ << ": values must be non-negative or -1 for dynamic padding, got ["
+ << padStart << ", " << padEnd << "]";
}
// Skip shape verification for dynamic input/output
``````````
</details>
https://github.com/llvm/llvm-project/pull/137177
More information about the Mlir-commits
mailing list