|
MLIR 22.0.0git
|
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| PyAffineMap (PyMlirContextRef contextRef, MlirAffineMap affineMap) | |
| bool | operator== (const PyAffineMap &other) const |
| operator MlirAffineMap () const | |
| MlirAffineMap | get () const |
| nanobind::object | getCapsule () |
| Gets a capsule wrapping the void* within the MlirAffineMap. | |
| 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 PyAffineMap | createFromCapsule (const nanobind::object &capsule) |
| Creates a PyAffineMap from the MlirAffineMap wrapped by a capsule. | |
|
inline |
Definition at line 1234 of file IRCore.h.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject::BaseContextObject().
Referenced by createFromCapsule(), and operator==().
|
static |
Creates a PyAffineMap from the MlirAffineMap wrapped by a capsule.
Note that PyAffineMap instances are uniqued, so the returned object may be a pre-existing object. Ownership of the underlying MlirAffineMap is taken by calling this function.
Definition at line 452 of file IRAffine.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::forContext(), mlirAffineMapGetContext(), mlirAffineMapIsNull(), mlirPythonCapsuleToAffineMap(), and PyAffineMap().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRAffine().
|
inline |
Definition at line 1238 of file IRCore.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAffineMapAttribute::bindDerived().
| nb::object PyAffineMap::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirAffineMap.
Definition at line 448 of file IRAffine.cpp.
References mlirPythonAffineMapToCapsule().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRAffine().
|
inline |
| bool PyAffineMap::operator== | ( | const PyAffineMap & | other | ) | const |
Definition at line 444 of file IRAffine.cpp.
References mlirAffineMapEqual(), and PyAffineMap().