[Mlir-commits] [mlir] [mlir][vector] Add support for linearizing Insert VectorOp in VectorLinearize (PR #92370)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 16 09:10:15 PDT 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 90d2f8c630e1ddddd034e4a0e575929c08dd26bf 18c92bb38c7299ef082f9708d251c587a05a8a90 -- mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
index c7a50efdd6..7dfb3490c6 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorLinearize.cpp
@@ -44,8 +44,7 @@ static bool isLessThanTargetBitWidth(Operation *op, unsigned targetBitWidth) {
   return true;
 }
 
-static bool isLessThanOrEqualTargetBitWidth(Type t,
-                                            unsigned targetBitWidth) {
+static bool isLessThanOrEqualTargetBitWidth(Type t, unsigned targetBitWidth) {
   VectorType vecType = dyn_cast<VectorType>(t);
   // Reject index since getElementTypeBitWidth will abort for Index types.
   if (!vecType || vecType.getElementType().isIndex())

``````````

</details>


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


More information about the Mlir-commits mailing list