[Mlir-commits] [mlir] [mlir][tosa] Fix crash in inferReturnTypes for ReduceOps (PR #69843)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Oct 23 13:43:53 PDT 2023


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 7d7e4d20b077c1f64b0db88ab844ccb9214bd38c ef5bf7fdd0286c1a027d472d09c0595db2468649 -- mlir/lib/Dialect/Tosa/IR/TosaOps.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 39bb2f8092be..6b8747913130 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -1155,7 +1155,8 @@ REDUCE_SHAPE_INFER(tosa::ReduceSumOp)
 COMPATIBLE_RETURN_TYPES(tosa::ConcatOp)
 #undef COMPATIBLE_RETURN_TYPES
 
-template <typename T> static LogicalResult verifyReduceOp(T op) {
+template <typename T>
+static LogicalResult verifyReduceOp(T op) {
   // All TOSA reduce Ops have input, output and axis.
   TensorType inputType = op.getInput().getType();
   TensorType outputType = op.getOutput().getType();

``````````

</details>


https://github.com/llvm/llvm-project/pull/69843


More information about the Mlir-commits mailing list