|
MLIR
22.0.0git
|
#include "Bindings/Python/IRModule.h"
Inheritance diagram for mlir::python::PyAffineMap: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. More... | |
Public Member Functions inherited from mlir::python::BaseContextObject | |
| BaseContextObject (PyMlirContextRef ref) | |
| PyMlirContextRef & | getContext () |
| Accesses the context reference. More... | |
Static Public Member Functions | |
| static PyAffineMap | createFromCapsule (const nanobind::object &capsule) |
| Creates a PyAffineMap from the MlirAffineMap wrapped by a capsule. More... | |
Definition at line 1224 of file IRModule.h.
|
inline |
Definition at line 1226 of file IRModule.h.
Referenced by createFromCapsule().
|
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 427 of file IRAffine.cpp.
References mlir::python::PyMlirContext::forContext(), mlirAffineMapGetContext(), mlirAffineMapIsNull(), mlirPythonCapsuleToAffineMap(), and PyAffineMap().
|
inline |
Definition at line 1230 of file IRModule.h.
| nb::object PyAffineMap::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirAffineMap.
Definition at line 423 of file IRAffine.cpp.
References mlirPythonAffineMapToCapsule().
|
inline |
Definition at line 1229 of file IRModule.h.
| bool PyAffineMap::operator== | ( | const PyAffineMap & | other | ) | const |
Definition at line 419 of file IRAffine.cpp.
References mlirAffineMapEqual().