MLIR 22.0.0git
mlir::python::PyIntegerSet Class Reference

#include "Bindings/Python/IRModule.h"

Inheritance diagram for mlir::python::PyIntegerSet:

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::BaseContextObject
 BaseContextObject (PyMlirContextRef ref)
PyMlirContextRefgetContext ()
 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.

Detailed Description

Definition at line 1245 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyIntegerSet()

mlir::python::PyIntegerSet::PyIntegerSet ( PyMlirContextRef contextRef,
MlirIntegerSet integerSet )
inline

Definition at line 1247 of file IRModule.h.

References mlir::python::BaseContextObject::BaseContextObject().

Referenced by createFromCapsule(), and operator==().

Member Function Documentation

◆ createFromCapsule()

PyIntegerSet PyIntegerSet::createFromCapsule ( const nanobind::object & capsule)
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 503 of file IRAffine.cpp.

References mlir::python::PyMlirContext::forContext(), mlirIntegerSetGetContext(), mlirIntegerSetIsNull(), mlirPythonCapsuleToIntegerSet(), and PyIntegerSet().

◆ get()

MlirIntegerSet mlir::python::PyIntegerSet::get ( ) const
inline

Definition at line 1251 of file IRModule.h.

◆ getCapsule()

nb::object PyIntegerSet::getCapsule ( )

Gets a capsule wrapping the void* within the MlirIntegerSet.

Definition at line 499 of file IRAffine.cpp.

References mlirPythonIntegerSetToCapsule().

◆ operator MlirIntegerSet()

mlir::python::PyIntegerSet::operator MlirIntegerSet ( ) const
inline

Definition at line 1250 of file IRModule.h.

◆ operator==()

bool PyIntegerSet::operator== ( const PyIntegerSet & other) const

Definition at line 495 of file IRAffine.cpp.

References mlirIntegerSetEqual(), and PyIntegerSet().


The documentation for this class was generated from the following files: