MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
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
 
pybind11::object getCapsule ()
 Gets a capsule wrapping the void* within the MlirIntegerSet. More...
 
- Public Member Functions inherited from mlir::python::BaseContextObject
 BaseContextObject (PyMlirContextRef ref)
 
PyMlirContextRefgetContext ()
 Accesses the context reference. More...
 

Static Public Member Functions

static PyIntegerSet createFromCapsule (pybind11::object capsule)
 Creates a PyIntegerSet from the MlirAffineMap wrapped by a capsule. More...
 

Detailed Description

Definition at line 1198 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyIntegerSet()

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

Definition at line 1200 of file IRModule.h.

Referenced by createFromCapsule().

Member Function Documentation

◆ createFromCapsule()

PyIntegerSet PyIntegerSet::createFromCapsule ( pybind11::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 509 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 1204 of file IRModule.h.

◆ getCapsule()

py::object PyIntegerSet::getCapsule ( )

Gets a capsule wrapping the void* within the MlirIntegerSet.

Definition at line 504 of file IRAffine.cpp.

References mlirPythonIntegerSetToCapsule().

◆ operator MlirIntegerSet()

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

Definition at line 1203 of file IRModule.h.

◆ operator==()

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

Definition at line 500 of file IRAffine.cpp.

References mlirIntegerSetEqual().


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