[Mlir-commits] [mlir] [mlir][vector] Add ElementwiseToOuterproduct (PR #93664)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 30 02:35:44 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 1e44a9690915e8acf7b2a0e67b56aaf4509e9257 0f454b045f27c27c57601454854c8add7e147fb3 -- mlir/include/mlir/Dialect/Vector/IR/VectorOps.h mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
index a48101699c..0bbdffeb5d 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp
@@ -1815,7 +1815,8 @@ private:
 template <typename MulOpType>
 struct ElementwiseToOuterproduct : public OpRewritePattern<MulOpType> {
   using OpRewritePattern<MulOpType>::OpRewritePattern;
-  // Helper function returning the source of the input broadcast if it matches requirements for an outerproduct pattern.
+  // Helper function returning the source of the input broadcast if it matches
+  // requirements for an outerproduct pattern.
   Value getValidBroadcastSource(vector::BroadcastOp broadcastOp) const {
     // Fail if it is not a 1-to-2 dimension to broadcast to avoid generating
     // shape_casts/broadcasts which does not belong in this pattern.

``````````

</details>


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


More information about the Mlir-commits mailing list