|
MLIR 22.0.0git
|
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| PyIntegerSet (PyMlirContextRef contextRef, MlirIntegerSet integerSet) | |
| bool | operator== (const PyIntegerSet &other) const |
| operator MlirIntegerSet () const | |
| MlirIntegerSet | get () const |
| nanobind::object | getCapsule () |
| Gets a capsule wrapping the void* within the MlirIntegerSet. | |
| 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 PyIntegerSet | createFromCapsule (const nanobind::object &capsule) |
| Creates a PyIntegerSet from the MlirAffineMap wrapped by a capsule. | |
|
inline |
Definition at line 1255 of file IRCore.h.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject::BaseContextObject().
Referenced by createFromCapsule(), and operator==().
|
static |
Creates a PyIntegerSet from the MlirAffineMap wrapped by a capsule.
Note that PyIntegerSet instances may be uniqued, so the returned object may be a pre-existing object. Integer sets are owned by the context.
Definition at line 532 of file IRAffine.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::forContext(), mlirIntegerSetGetContext(), mlirIntegerSetIsNull(), mlirPythonCapsuleToIntegerSet(), and PyIntegerSet().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRAffine().
|
inline |
Definition at line 1259 of file IRCore.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyIntegerSetAttribute::bindDerived().
| nb::object PyIntegerSet::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirIntegerSet.
Definition at line 528 of file IRAffine.cpp.
References mlirPythonIntegerSetToCapsule().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRAffine().
|
inline |
| bool PyIntegerSet::operator== | ( | const PyIntegerSet & | other | ) | const |
Definition at line 524 of file IRAffine.cpp.
References mlirIntegerSetEqual(), and PyIntegerSet().