MLIR
21.0.0git
|
Creates a custom subclass of mlir.ir.Value, implementing a casting constructor and type checking methods. More...
#include "mlir/Bindings/Python/NanobindAdaptors.h"
Public Types | |
using | IsAFunctionTy = bool(*)(MlirValue) |
Public Member Functions | |
mlir_value_subclass (nanobind::handle scope, const char *valueClassName, IsAFunctionTy isaFunction) | |
Subclasses by looking up the super-class dynamically. More... | |
mlir_value_subclass (nanobind::handle scope, const char *valueClassName, IsAFunctionTy isaFunction, const nanobind::object &superCls) | |
Subclasses with a provided mlir.ir.Value super-class. More... | |
![]() | |
pure_subclass (nanobind::handle scope, const char *derivedClassName, const nanobind::object &superClass) | |
template<typename Func , typename... Extra> | |
pure_subclass & | def (const char *name, Func &&f, const Extra &...extra) |
template<typename Func , typename... Extra> | |
pure_subclass & | def_property_readonly (const char *name, Func &&f, const Extra &...extra) |
template<typename Func , typename... Extra> | |
pure_subclass & | def_staticmethod (const char *name, Func &&f, const Extra &...extra) |
template<typename Func , typename... Extra> | |
pure_subclass & | def_classmethod (const char *name, Func &&f, const Extra &...extra) |
nanobind::object | get_class () const |
Additional Inherited Members | |
![]() | |
nanobind::object | superClass |
nanobind::object | thisClass |
Creates a custom subclass of mlir.ir.Value, implementing a casting constructor and type checking methods.
Definition at line 593 of file NanobindAdaptors.h.
using mlir::python::nanobind_adaptors::mlir_value_subclass::IsAFunctionTy = bool (*)(MlirValue) |
Definition at line 595 of file NanobindAdaptors.h.
|
inline |
Subclasses by looking up the super-class dynamically.
Definition at line 598 of file NanobindAdaptors.h.
|
inline |
Subclasses with a provided mlir.ir.Value super-class.
This must be used if the subclass is being defined in the same extension module as the mlir.ir class (otherwise, it will trigger a recursive initialization).
Definition at line 609 of file NanobindAdaptors.h.
References mlir::python::nanobind_adaptors::pure_subclass::def_staticmethod(), MAKE_MLIR_PYTHON_QUALNAME, and mlir::python::nanobind_adaptors::pure_subclass::thisClass.