aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Bindings/Python/IRModule.h
diff options
context:
space:
mode:
authorPeter Hawkins <phawkins@google.com>2024-12-20 23:32:32 -0500
committerGitHub <noreply@github.com>2024-12-20 20:32:32 -0800
commit5cd427477218d8bdb659c6c53a7758f741c3990a (patch)
treec2bfa5baafd7cf84a59be50a5becdaefdf48d52e /mlir/lib/Bindings/Python/IRModule.h
parent559f0809cc69f0ee55fa56fac1758f43863f2650 (diff)
downloadllvm-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.h4
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 {