MLIR
20.0.0git
|
#include "Bindings/Python/IRModule.h"
Public Member Functions | |
PyAffineMap (PyMlirContextRef contextRef, MlirAffineMap affineMap) | |
bool | operator== (const PyAffineMap &other) const |
operator MlirAffineMap () const | |
MlirAffineMap | get () const |
pybind11::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 (pybind11::object capsule) |
Creates a PyAffineMap from the MlirAffineMap wrapped by a capsule. More... | |
Definition at line 1190 of file IRModule.h.
|
inline |
Definition at line 1192 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 431 of file IRAffine.cpp.
References mlir::python::PyMlirContext::forContext(), mlirAffineMapGetContext(), mlirAffineMapIsNull(), mlirPythonCapsuleToAffineMap(), and PyAffineMap().
|
inline |
Definition at line 1196 of file IRModule.h.
py::object PyAffineMap::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirAffineMap.
Definition at line 427 of file IRAffine.cpp.
References mlirPythonAffineMapToCapsule().
|
inline |
Definition at line 1195 of file IRModule.h.
bool PyAffineMap::operator== | ( | const PyAffineMap & | other | ) | const |
Definition at line 423 of file IRAffine.cpp.
References mlirAffineMapEqual().