[llvm] [mlir] [mlir][EmitC] Add Arith to EmitC conversions (PR #84151)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 09:08:56 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 eaf0d82529f30fd53b453886676821d67ccfe9af dbd3834da575acf5cfd381726932a07e8678eae1 -- mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitC.h mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitCPass.h mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp mlir/lib/Conversion/ArithToEmitC/ArithToEmitCPass.cpp mlir/include/mlir/Conversion/Passes.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitC.h b/mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitC.h
index 53ba32f1c4..c71dfc6aa5 100644
--- a/mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitC.h
+++ b/mlir/include/mlir/Conversion/ArithToEmitC/ArithToEmitC.h
@@ -13,7 +13,8 @@ namespace mlir {
class RewritePatternSet;
class TypeConverter;
-void populateArithToEmitCPatterns(TypeConverter typeConverter, RewritePatternSet &patterns);
+void populateArithToEmitCPatterns(TypeConverter typeConverter,
+ RewritePatternSet &patterns);
} // namespace mlir
#endif // MLIR_CONVERSION_ARITHTOEMITC_ARITHTOEMITC_H
diff --git a/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp b/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
index 289acc9222..596556c502 100644
--- a/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
+++ b/mlir/lib/Conversion/ArithToEmitC/ArithToEmitC.cpp
@@ -45,7 +45,8 @@ public:
// Pattern population
//===----------------------------------------------------------------------===//
-void mlir::populateArithToEmitCPatterns(TypeConverter typeConverter, RewritePatternSet &patterns) {
+void mlir::populateArithToEmitCPatterns(TypeConverter typeConverter,
+ RewritePatternSet &patterns) {
MLIRContext *ctx = patterns.getContext();
// clang-format off
``````````
</details>
https://github.com/llvm/llvm-project/pull/84151
More information about the llvm-commits
mailing list