[llvm] [mlir] [mlir] Add config for PDL (PR #69927)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 16:00:22 PST 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 f0691bcdf90bc44d0737e3395423e84b075ab84a f8392149f33c13f5599e574e0a64e0316d8731d7 -- mlir/include/mlir/IR/PDLPatternMatch.h.inc mlir/lib/IR/PDL/PDLPatternMatch.cpp mlir/include/mlir/Conversion/LLVMCommon/TypeConverter.h mlir/include/mlir/Dialect/Vector/IR/VectorOps.h mlir/include/mlir/IR/PatternMatch.h mlir/include/mlir/Transforms/DialectConversion.h mlir/lib/IR/PatternMatch.cpp mlir/lib/Rewrite/ByteCode.cpp mlir/lib/Rewrite/ByteCode.h mlir/lib/Rewrite/FrozenRewritePatternSet.cpp mlir/lib/Rewrite/PatternApplicator.cpp mlir/lib/Transforms/Utils/DialectConversion.cpp mlir/tools/mlir-opt/mlir-opt.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/IR/PDL/PDLPatternMatch.cpp b/mlir/lib/IR/PDL/PDLPatternMatch.cpp
index 89f6bbdaa2..da07cc462a 100644
--- a/mlir/lib/IR/PDL/PDLPatternMatch.cpp
+++ b/mlir/lib/IR/PDL/PDLPatternMatch.cpp
@@ -1,4 +1,5 @@
-//===- PDLPatternMatch.cpp - Base classes for PDL pattern match ------------===//
+//===- PDLPatternMatch.cpp - Base classes for PDL pattern match
+//------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -6,9 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "mlir/IR/PatternMatch.h"
 #include "mlir/IR/IRMapping.h"
 #include "mlir/IR/Iterators.h"
+#include "mlir/IR/PatternMatch.h"
 #include "mlir/IR/RegionKindInterface.h"
 
 using namespace mlir;
@@ -130,4 +131,3 @@ void PDLPatternModule::registerRewriteFunction(StringRef name,
   // rewrite.
   rewriteFunctions.try_emplace(name, std::move(rewriteFn));
 }
-
diff --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp
index 01f58eee26..6e6992dcde 100644
--- a/mlir/lib/Rewrite/ByteCode.cpp
+++ b/mlir/lib/Rewrite/ByteCode.cpp
@@ -2333,4 +2333,3 @@ LogicalResult PDLByteCode::rewrite(PatternRewriter &rewriter,
   }
   return result;
 }
-

``````````

</details>


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


More information about the llvm-commits mailing list