[Mlir-commits] [mlir] [DO NOT SUBMIT] Implement LowerVectorToArmNeon Pattern (PR #81895)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Feb 15 10:35:53 PST 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 351f94d981f363909ae6e76ed57cd0a75c3f5688 9e062af89a20b2c38d4b333b59dd081abbf6bfbe -- mlir/include/mlir/Dialect/ArmNeon/Transforms/Transforms.h mlir/lib/Dialect/ArmNeon/Transforms/LowerVectorToArmNeon.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Dialect/ArmNeon/Transforms/Transforms.h b/mlir/include/mlir/Dialect/ArmNeon/Transforms/Transforms.h
index dfd4acba58..41dbc2633d 100644
--- a/mlir/include/mlir/Dialect/ArmNeon/Transforms/Transforms.h
+++ b/mlir/include/mlir/Dialect/ArmNeon/Transforms/Transforms.h
@@ -1,4 +1,5 @@
-//===- Transforms.h - ArmNeon Dialect Transformation Entrypoints -*- C++ -*-===//
+//===- Transforms.h - ArmNeon Dialect Transformation Entrypoints -*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/mlir/lib/Dialect/ArmNeon/Transforms/LowerVectorToArmNeon.cpp b/mlir/lib/Dialect/ArmNeon/Transforms/LowerVectorToArmNeon.cpp
index 8c308bdc86..99e54b1393 100644
--- a/mlir/lib/Dialect/ArmNeon/Transforms/LowerVectorToArmNeon.cpp
+++ b/mlir/lib/Dialect/ArmNeon/Transforms/LowerVectorToArmNeon.cpp
@@ -41,7 +41,7 @@ static Type matchContainerType(Type element, Type container) {
 // intrinsic.
 class LowerVectorToArmNeonPattern
     : public OpRewritePattern<vector::ContractionOp> {
- public:
+public:
   using OpRewritePattern::OpRewritePattern;
   LogicalResult matchAndRewrite(vector::ContractionOp op,
                                 PatternRewriter &rewriter) const override {
@@ -144,7 +144,7 @@ class LowerVectorToArmNeonPattern
   }
 };
 
-}  // namespace
+} // namespace
 
 void mlir::arm_neon::populateLowerVectorToArmNeonPatterns(
     RewritePatternSet &patterns) {

``````````

</details>


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


More information about the Mlir-commits mailing list