MLIR  20.0.0git
Classes | Namespaces | Functions
PybindAdaptors.h File Reference
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <pybind11/stl.h>
#include "mlir-c/Bindings/Python/Interop.h"
#include "mlir-c/Diagnostics.h"
#include "mlir-c/IR.h"
#include "llvm/ADT/Twine.h"

Go to the source code of this file.

Classes

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< MlirBlock >
 Casts object -> MlirBlock. More...
 
struct  pybind11::detail::type_caster< MlirContext >
 Casts object -> MlirContext. More...
 
struct  pybind11::detail::type_caster< MlirDialectRegistry >
 Casts object <-> MlirDialectRegistry. 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< MlirFrozenRewritePatternSet >
 Casts object <-> MlirFrozenRewritePatternSet. More...
 
struct  pybind11::detail::type_caster< MlirOperation >
 Casts object <-> MlirOperation. More...
 
struct  pybind11::detail::type_caster< MlirValue >
 Casts object <-> MlirValue. More...
 
struct  pybind11::detail::type_caster< MlirPassManager >
 Casts object -> MlirPassManager. More...
 
struct  pybind11::detail::type_caster< MlirTypeID >
 Casts object <-> MlirTypeID. 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...
 
class  mlir::python::adaptors::mlir_value_subclass
 Creates a custom subclass of mlir.ir.Value, implementing a casting constructor and type checking methods. More...
 
class  mlir::python::CollectDiagnosticsToStringScope
 RAII scope intercepting all diagnostics into a string. More...
 

Namespaces

 pybind11
 
 pybind11::detail
 
 mlir
 Include the generated interface declarations.
 
 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...