MLIR  20.0.0git
Classes | Namespaces | Functions
NanobindAdaptors.h File Reference
#include <cstdint>
#include "mlir-c/Diagnostics.h"
#include "mlir-c/IR.h"
#include "mlir/Bindings/Python/Nanobind.h"
#include "mlir-c/Bindings/Python/Interop.h"
#include "llvm/ADT/Twine.h"

Go to the source code of this file.

Classes

struct  nanobind::detail::type_caster< MlirAffineMap >
 Casts object <-> MlirAffineMap. More...
 
struct  nanobind::detail::type_caster< MlirAttribute >
 Casts object <-> MlirAttribute. More...
 
struct  nanobind::detail::type_caster< MlirBlock >
 Casts object -> MlirBlock. More...
 
struct  nanobind::detail::type_caster< MlirContext >
 Casts object -> MlirContext. More...
 
struct  nanobind::detail::type_caster< MlirDialectRegistry >
 Casts object <-> MlirDialectRegistry. More...
 
struct  nanobind::detail::type_caster< MlirLocation >
 Casts object <-> MlirLocation. More...
 
struct  nanobind::detail::type_caster< MlirModule >
 Casts object <-> MlirModule. More...
 
struct  nanobind::detail::type_caster< MlirFrozenRewritePatternSet >
 Casts object <-> MlirFrozenRewritePatternSet. More...
 
struct  nanobind::detail::type_caster< MlirOperation >
 Casts object <-> MlirOperation. More...
 
struct  nanobind::detail::type_caster< MlirValue >
 Casts object <-> MlirValue. More...
 
struct  nanobind::detail::type_caster< MlirPassManager >
 Casts object -> MlirPassManager. More...
 
struct  nanobind::detail::type_caster< MlirTypeID >
 Casts object <-> MlirTypeID. More...
 
struct  nanobind::detail::type_caster< MlirType >
 Casts object <-> MlirType. More...
 
class  mlir::python::nanobind_adaptors::pure_subclass
 Provides a facility like nanobind::class_ for defining a new class in a scope, but this allows extension of an arbitrary Python class, defining methods on it is a similar way. More...
 
class  mlir::python::nanobind_adaptors::mlir_attribute_subclass
 Creates a custom subclass of mlir.ir.Attribute, implementing a casting constructor and type checking methods. More...
 
class  mlir::python::nanobind_adaptors::mlir_type_subclass
 Creates a custom subclass of mlir.ir.Type, implementing a casting constructor and type checking methods. More...
 
class  mlir::python::nanobind_adaptors::mlir_value_subclass
 Creates a custom subclass of mlir.ir.Value, implementing a casting constructor and type checking methods. More...
 

Namespaces

 nanobind
 
 nanobind::detail
 
 mlir
 Include the generated interface declarations.
 
 mlir::python
 
 mlir::python::nanobind_adaptors
 

Functions

static nanobind::object nanobind::detail::mlirApiObjectToCapsule (nanobind::handle apiObject)
 Helper to convert a presumed MLIR API object to a capsule, accepting either an explicit Capsule (which can happen when two C APIs are communicating directly via Python) or indirectly by querying the MLIR_PYTHON_CAPI_PTR_ATTR attribute (through which supported MLIR Python API objects export their contained API pointer as a capsule). More...