|
MLIR 23.0.0git
|
CRTP base class for Python MLIR affine expressions that subclass AffineExpr and should be castable from it. More...
Public Types | |
| using | ClassTy = nb::class_<DerivedTy, BaseTy> |
| using | IsAFunctionTy = bool (*)(MlirAffineExpr) |
Public Member Functions | |
| PyConcreteAffineExpr ()=default | |
| PyConcreteAffineExpr (PyMlirContextRef contextRef, MlirAffineExpr affineExpr) | |
| PyConcreteAffineExpr (PyAffineExpr &orig) | |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAffineExpr | |
| PyAffineExpr (PyMlirContextRef contextRef, MlirAffineExpr affineExpr) | |
| bool | operator== (const PyAffineExpr &other) const |
| operator MlirAffineExpr () const | |
| MlirAffineExpr | get () const |
| nanobind::object | getCapsule () |
| Gets a capsule wrapping the void* within the MlirAffineExpr. | |
| PyAffineExpr | add (const PyAffineExpr &other) const |
| PyAffineExpr | mul (const PyAffineExpr &other) const |
| PyAffineExpr | floorDiv (const PyAffineExpr &other) const |
| PyAffineExpr | ceilDiv (const PyAffineExpr &other) const |
| PyAffineExpr | mod (const PyAffineExpr &other) const |
| nanobind::typed< nanobind::object, PyAffineExpr > | maybeDownCast () |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject | |
| BaseContextObject (PyMlirContextRef ref) | |
| PyMlirContextRef & | getContext () |
| Accesses the context reference. | |
Static Public Member Functions | |
| static MlirAffineExpr | castFrom (PyAffineExpr &orig) |
| static void | bind (nb::module_ &m) |
| static void | bindDerived (ClassTy &m) |
| Implemented by derived classes to add methods to the Python subclass. | |
| Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAffineExpr | |
| static PyAffineExpr | createFromCapsule (const nanobind::object &capsule) |
| Creates a PyAffineExpr from the MlirAffineExpr wrapped by a capsule. | |
CRTP base class for Python MLIR affine expressions that subclass AffineExpr and should be castable from it.
Intermediate hierarchy classes can be modeled by specifying BaseTy.
Definition at line 82 of file IRAffine.cpp.
| using mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAffineExpr< DerivedTy, BaseTy >::ClassTy = nb::class_<DerivedTy, BaseTy> |
Definition at line 88 of file IRAffine.cpp.
| using mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAffineExpr< DerivedTy, BaseTy >::IsAFunctionTy = bool (*)(MlirAffineExpr) |
Definition at line 89 of file IRAffine.cpp.
|
default |
Referenced by PyConcreteAffineExpr().
|
inline |
Definition at line 92 of file IRAffine.cpp.
|
inline |
Definition at line 94 of file IRAffine.cpp.
References castFrom(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject::getContext(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAffineExpr::PyAffineExpr(), and PyConcreteAffineExpr().
|
inlinestatic |
Definition at line 109 of file IRAffine.cpp.
|
inlinestatic |
Implemented by derived classes to add methods to the Python subclass.
Definition at line 116 of file IRAffine.cpp.
|
inlinestatic |
Definition at line 97 of file IRAffine.cpp.
References nanobind::detail::join(), and mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAffineExpr::PyAffineExpr().
Referenced by PyConcreteAffineExpr().