[Mlir-commits] [mlir] [MLIR] Refactor to create vectorization convOp precondition check (PR #130181)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Mar 12 13:55:54 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 6c2e170d043d3a7d7b32635e887cfd255ef5c2ce 51a97cc07c570ef92450ee8e7a5c231cacd11180 --extensions cpp -- mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index af8f5eaebb..c902641d76 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -2019,7 +2019,7 @@ static bool isSupportedPoolKind(vector::CombiningKind kind) {
 }
 
 static LogicalResult vectorizeConvOpPrecondition(linalg::LinalgOp convOp) {
-  auto getOperandType = [&] (auto operand) {
+  auto getOperandType = [&](auto operand) {
     return dyn_cast<ShapedType>((operand->get()).getType());
   };
   ShapedType lhsShapedType = getOperandType(convOp.getDpsInputOperand(0));

``````````

</details>


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


More information about the Mlir-commits mailing list