diff options
author | Peter Hawkins <phawkins@google.com> | 2024-12-20 23:32:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 20:32:32 -0800 |
commit | 5cd427477218d8bdb659c6c53a7758f741c3990a (patch) | |
tree | c2bfa5baafd7cf84a59be50a5becdaefdf48d52e /mlir/lib/Bindings/Python/IRModule.h | |
parent | 559f0809cc69f0ee55fa56fac1758f43863f2650 (diff) | |
download | llvm-5cd427477218d8bdb659c6c53a7758f741c3990a.zip llvm-5cd427477218d8bdb659c6c53a7758f741c3990a.tar.gz llvm-5cd427477218d8bdb659c6c53a7758f741c3990a.tar.bz2 |
[mlir python] Port in-tree dialects to nanobind. (#119924)
This is a companion to #118583, although it can be landed independently
because since #117922 dialects do not have to use the same Python
binding framework as the Python core code.
This PR ports all of the in-tree dialect and pass extensions to
nanobind, with the exception of those that remain for testing pybind11
support.
This PR also:
* removes CollectDiagnosticsToStringScope from NanobindAdaptors.h. This
was overlooked in a previous PR and it is duplicated in Diagnostics.h.
---------
Co-authored-by: Jacques Pienaar <jpienaar@google.com>
Diffstat (limited to 'mlir/lib/Bindings/Python/IRModule.h')
-rw-r--r-- | mlir/lib/Bindings/Python/IRModule.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mlir/lib/Bindings/Python/IRModule.h b/mlir/lib/Bindings/Python/IRModule.h index a242ff2..8fb32a2 100644 --- a/mlir/lib/Bindings/Python/IRModule.h +++ b/mlir/lib/Bindings/Python/IRModule.h @@ -10,9 +10,6 @@ #ifndef MLIR_BINDINGS_PYTHON_IRMODULES_H #define MLIR_BINDINGS_PYTHON_IRMODULES_H -#include <nanobind/nanobind.h> -#include <nanobind/stl/string.h> - #include <optional> #include <utility> #include <vector> @@ -26,6 +23,7 @@ #include "mlir-c/IntegerSet.h" #include "mlir-c/Transforms.h" #include "mlir/Bindings/Python/NanobindAdaptors.h" +#include "mlir/Bindings/Python/Nanobind.h" #include "llvm/ADT/DenseMap.h" namespace mlir { |