[Mlir-commits] [mlir] Add Vector-dialect interleave-to-shuffle pattern (PR #91800)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri May 10 13:18:13 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 00e3620a0e7ceb8ab1c0cae303e40ad2528fdebe 17f0a9ba738801b56b2a9a5da3fed128c018c3a2 -- mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h mlir/lib/Dialect/Vector/TransformOps/VectorTransformOps.cpp mlir/lib/Dialect/Vector/Transforms/LowerVectorInterleave.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h b/mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h
index d7eef637d7..8fd9904fab 100644
--- a/mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h
+++ b/mlir/include/mlir/Dialect/Vector/Transforms/LoweringPatterns.h
@@ -274,7 +274,7 @@ void populateVectorInterleaveLoweringPatterns(RewritePatternSet &patterns,
PatternBenefit benefit = 1);
void populateVectorInterleaveToShufflePatterns(RewritePatternSet &patterns,
- PatternBenefit benefit = 1);
+ PatternBenefit benefit = 1);
} // namespace vector
} // namespace mlir
diff --git a/mlir/lib/Dialect/Vector/Transforms/LowerVectorInterleave.cpp b/mlir/lib/Dialect/Vector/Transforms/LowerVectorInterleave.cpp
index 2388a952cd..6ba11535f0 100644
--- a/mlir/lib/Dialect/Vector/Transforms/LowerVectorInterleave.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/LowerVectorInterleave.cpp
@@ -80,9 +80,8 @@ private:
class InterleaveToShuffle : public OpRewritePattern<vector::InterleaveOp> {
public:
- InterleaveToShuffle(MLIRContext *context,
- PatternBenefit benefit = 1)
- : OpRewritePattern(context, benefit) {};
+ InterleaveToShuffle(MLIRContext *context, PatternBenefit benefit = 1)
+ : OpRewritePattern(context, benefit){};
LogicalResult matchAndRewrite(vector::InterleaveOp op,
PatternRewriter &rewriter) const override {
``````````
</details>
https://github.com/llvm/llvm-project/pull/91800
More information about the Mlir-commits
mailing list