[Mlir-commits] [mlir] [mlir][tosa] Move SLICE constant-operand checks to tosa-validate (PR #234584)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Oct 22 04:23:42 PDT 2026
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 -- mlir/lib/Dialect/Tosa/IR/TosaOps.cpp mlir/lib/Dialect/Tosa/Transforms/TosaValidation.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/lib/Dialect/Tosa/Transforms/TosaValidation.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
index 3615a6078..221e797ef 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
@@ -1417,8 +1417,8 @@ LogicalResult checkErrorIfSlice(Operation *op) {
// ERROR_IF(any(size <= 0))
if (hasSizeValues &&
llvm::any_of(sizeValues, [](int64_t v) { return v <= 0; }))
- return op->emitOpError("size values must be > 0, got [") << sizeValues
- << "]";
+ return op->emitOpError("size values must be > 0, got [")
+ << sizeValues << "]";
// ERROR_IF(is_block_scale<in_out_t>() && start[rank(shape1) - 1] %
// get_innermost_block_size<in_out_t>() != 0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/234584
More information about the Mlir-commits
mailing list