[Mlir-commits] [mlir] [mlir][vector] Constrain patterns: vector.contract -> vector.outerproduct (PR #68400)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 6 03:06:42 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 ff843c00ce1df5af29d5dae671086b92dcabf94b 76c021faddbdf06f80873555a9691be384206da9 -- mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp b/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
index c1cc0d7c64de..bc273e7745b6 100644
--- a/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/LowerVectorContract.cpp
@@ -424,8 +424,8 @@ struct UnrolledOuterProductGenerator
     return rewriter.create<arith::ExtSIOp>(loc, promotedType, v);
   }
 
-  FailureOr<Value> outerProd(Value lhs, Value rhs, Value res, VectorType lhsType,
-                             int reductionDim,
+  FailureOr<Value> outerProd(Value lhs, Value rhs, Value res,
+                             VectorType lhsType, int reductionDim,
                              std::optional<Value> maybeMask = std::nullopt) {
     // Unrolling a scalable dimension would be incorrect - bail out.
     if (lhsType.getScalableDims()[reductionDim])

``````````

</details>


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


More information about the Mlir-commits mailing list