MLIR
20.0.0git
|
Creates a custom subclass of mlir.ir.Value, implementing a casting constructor and type checking methods. More...
#include "mlir/Bindings/Python/PybindAdaptors.h"
Public Types | |
using | IsAFunctionTy = bool(*)(MlirValue) |
Public Member Functions | |
mlir_value_subclass (py::handle scope, const char *valueClassName, IsAFunctionTy isaFunction) | |
Subclasses by looking up the super-class dynamically. More... | |
mlir_value_subclass (py::handle scope, const char *valueClassName, IsAFunctionTy isaFunction, const py::object &superCls) | |
Subclasses with a provided mlir.ir.Value super-class. More... | |
Public Member Functions inherited from mlir::python::adaptors::pure_subclass | |
pure_subclass (py::handle scope, const char *derivedClassName, const py::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) |
py::object | get_class () const |
Additional Inherited Members | |
Protected Attributes inherited from mlir::python::adaptors::pure_subclass | |
py::object | superClass |
py::object | thisClass |
Creates a custom subclass of mlir.ir.Value, implementing a casting constructor and type checking methods.
Definition at line 558 of file PybindAdaptors.h.
using mlir::python::adaptors::mlir_value_subclass::IsAFunctionTy = bool (*)(MlirValue) |
Definition at line 560 of file PybindAdaptors.h.
|
inline |
Subclasses by looking up the super-class dynamically.
Definition at line 563 of file PybindAdaptors.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 574 of file PybindAdaptors.h.