MLIR  15.0.0git
Classes | Namespaces | Functions
PybindAdaptors.h File Reference
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <pybind11/stl.h>
#include "mlir-c/Bindings/Python/Interop.h"
#include "mlir-c/IR.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/Twine.h"
+ Include dependency graph for PybindAdaptors.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  pybind11::detail::type_caster< llvm::Optional< T > >
 
struct  pybind11::detail::type_caster< MlirAffineMap >
 Casts object <-> MlirAffineMap. More...
 
struct  pybind11::detail::type_caster< MlirAttribute >
 Casts object <-> MlirAttribute. More...
 
struct  pybind11::detail::type_caster< MlirContext >
 Casts object -> MlirContext. More...
 
struct  pybind11::detail::type_caster< MlirLocation >
 Casts object <-> MlirLocation. More...
 
struct  pybind11::detail::type_caster< MlirModule >
 Casts object <-> MlirModule. More...
 
struct  pybind11::detail::type_caster< MlirOperation >
 Casts object <-> MlirOperation. More...
 
struct  pybind11::detail::type_caster< MlirPassManager >
 Casts object -> MlirPassManager. More...
 
struct  pybind11::detail::type_caster< MlirType >
 Casts object <-> MlirType. More...
 
class  mlir::python::adaptors::pure_subclass
 Provides a facility like py::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::adaptors::mlir_attribute_subclass
 Creates a custom subclass of mlir.ir.Attribute, implementing a casting constructor and type checking methods. More...
 
class  mlir::python::adaptors::mlir_type_subclass
 Creates a custom subclass of mlir.ir.Type, implementing a casting constructor and type checking methods. More...
 

Namespaces

 pybind11
 
 pybind11::detail
 
 mlir
 TODO: Remove this file when SCCP and integer range analysis have been ported to the new framework.
 
 mlir::python
 
 mlir::python::adaptors
 

Functions

static py::object pybind11::detail::mlirApiObjectToCapsule (py::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...