[Mlir-commits] [mlir] [mlir][python] value casting (PR #69644)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Oct 25 12:38:16 PDT 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 4458ba8cef1c3dcc3c9006f5292e3a276007b33f 4b94445858d7e61ff271ed58bd6f823de597dbda -- mlir/include/mlir/Bindings/Python/PybindAdaptors.h mlir/lib/Bindings/Python/Globals.h mlir/lib/Bindings/Python/IRCore.cpp mlir/lib/Bindings/Python/IRModule.cpp mlir/lib/Bindings/Python/IRModule.h mlir/lib/Bindings/Python/MainModule.cpp mlir/lib/Bindings/Python/PybindUtils.h mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Bindings/Python/Globals.h b/mlir/lib/Bindings/Python/Globals.h
index 2940724d1a13..98d3b16836e0 100644
--- a/mlir/lib/Bindings/Python/Globals.h
+++ b/mlir/lib/Bindings/Python/Globals.h
@@ -99,7 +99,7 @@ public:
 
   /// Returns the custom value caster for MlirTypeID mlirTypeID.
   std::optional<pybind11::function> lookupValueCaster(MlirTypeID mlirTypeID,
-                                                     MlirDialect dialect);
+                                                      MlirDialect dialect);
 
   /// Looks up a registered dialect class by namespace. Note that this may
   /// trigger loading of the defining module and can arbitrarily re-enter.

``````````

</details>


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


More information about the Mlir-commits mailing list