[Mlir-commits] [mlir] [mlir] [Dialect] Add LibC dialect and printf op for CPU (PR #92369)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu May 16 01:57:15 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 f090801a9651cf4f0d05cc361a2a1b14805b62bf 9b19bb816d225d1bf3ca1236908bb5d0fbc40c17 -- mlir/include/mlir/Conversion/LibCToLLVM/LibCToLLVM.h mlir/include/mlir/Dialect/LibC/LibCDialect.h mlir/lib/Conversion/LibCToLLVM/LibCToLLVM.cpp mlir/lib/Dialect/LibC/LibCDialect.cpp mlir/include/mlir/Conversion/Passes.h mlir/include/mlir/InitAllDialects.h
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Conversion/LibCToLLVM/LibCToLLVM.h b/mlir/include/mlir/Conversion/LibCToLLVM/LibCToLLVM.h
index 0776c2debe..642e8f9052 100644
--- a/mlir/include/mlir/Conversion/LibCToLLVM/LibCToLLVM.h
+++ b/mlir/include/mlir/Conversion/LibCToLLVM/LibCToLLVM.h
@@ -19,7 +19,7 @@ class Pass;
 
 /// Populate the given list with patterns that convert from LibC to Func.
 void populateLibCToLLVMConversionPatterns(LLVMTypeConverter &converter,
-                                                RewritePatternSet &patterns);
+                                          RewritePatternSet &patterns);
 
 void registerConvertLibCToLLVMInterface(DialectRegistry &registry);
 } // namespace mlir
diff --git a/mlir/include/mlir/Dialect/LibC/LibCDialect.h b/mlir/include/mlir/Dialect/LibC/LibCDialect.h
index 98baab3387..ef10224ed3 100644
--- a/mlir/include/mlir/Dialect/LibC/LibCDialect.h
+++ b/mlir/include/mlir/Dialect/LibC/LibCDialect.h
@@ -1,4 +1,5 @@
-//===- LibCDialect.h - MLIR Dialect for LibC ---------------------*- C++ -*-===//
+//===- LibCDialect.h - MLIR Dialect for LibC ---------------------*- 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/LibC/LibCDialect.cpp b/mlir/lib/Dialect/LibC/LibCDialect.cpp
index 7b6a710398..65ac9d39da 100644
--- a/mlir/lib/Dialect/LibC/LibCDialect.cpp
+++ b/mlir/lib/Dialect/LibC/LibCDialect.cpp
@@ -1,4 +1,5 @@
-//===- LibCDialect.cpp - MLIR LibC ops implementation -----------------------===//
+//===- LibCDialect.cpp - MLIR LibC ops implementation
+//-----------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

``````````

</details>


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


More information about the Mlir-commits mailing list