[Mlir-commits] [llvm] [mlir] [mlir] Add PDL C & Python usage (PR #94714)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jun 6 18:41:23 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 765206e050453018e861637a08a4520f29238074 f70e85e83e36e1c786d607fa89b126d248bc6f3f -- mlir/include/mlir-c/Rewrite.h mlir/lib/Bindings/Python/Rewrite.cpp mlir/lib/Bindings/Python/Rewrite.h mlir/lib/CAPI/Transforms/Rewrite.cpp mlir/include/mlir-c/Bindings/Python/Interop.h mlir/include/mlir/Bindings/Python/PybindAdaptors.h mlir/lib/Bindings/Python/IRModule.h mlir/lib/Bindings/Python/MainModule.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/include/mlir/Bindings/Python/PybindAdaptors.h b/mlir/include/mlir/Bindings/Python/PybindAdaptors.h
index 39ee1551cc..441b1b55f5 100644
--- a/mlir/include/mlir/Bindings/Python/PybindAdaptors.h
+++ b/mlir/include/mlir/Bindings/Python/PybindAdaptors.h
@@ -199,7 +199,8 @@ struct type_caster<MlirModule> {
 };
 
 /// Casts object <-> MlirFrozenRewritePatternSet.
-template <> struct type_caster<MlirFrozenRewritePatternSet> {
+template <>
+struct type_caster<MlirFrozenRewritePatternSet> {
   PYBIND11_TYPE_CASTER(MlirFrozenRewritePatternSet,
                        _("MlirFrozenRewritePatternSet"));
   bool load(handle src, bool) {

``````````

</details>


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


More information about the Mlir-commits mailing list