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

#include "mlir/Bindings/Python/IRCore.h"

Inheritance diagram for mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::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::MLIR_BINDINGS_PYTHON_DOMAIN::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 1253 of file IRCore.h.

Constructor & Destructor Documentation

◆ PyIntegerSet()

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

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 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().

◆ get()

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

◆ getCapsule()

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().

◆ operator MlirIntegerSet()

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

Definition at line 1258 of file IRCore.h.

◆ operator==()

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

Definition at line 524 of file IRAffine.cpp.

References mlirIntegerSetEqual(), and PyIntegerSet().


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