|
MLIR 22.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 91 of file IRAffine.cpp.
| using mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAffineExpr< DerivedTy, BaseTy >::ClassTy = nb::class_<DerivedTy, BaseTy> |
Definition at line 97 of file IRAffine.cpp.
| using mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAffineExpr< DerivedTy, BaseTy >::IsAFunctionTy = bool (*)(MlirAffineExpr) |
Definition at line 98 of file IRAffine.cpp.
|
default |
Referenced by PyConcreteAffineExpr().
|
inline |
Definition at line 101 of file IRAffine.cpp.
|
inline |
Definition at line 103 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 118 of file IRAffine.cpp.
|
inlinestatic |
Implemented by derived classes to add methods to the Python subclass.
Definition at line 125 of file IRAffine.cpp.
|
inlinestatic |
Definition at line 106 of file IRAffine.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAffineExpr::PyAffineExpr().
Referenced by PyConcreteAffineExpr().