MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::python::PyAffineMap Class Reference

#include "Bindings/Python/IRModule.h"

+ Inheritance diagram for mlir::python::PyAffineMap:

Public Member Functions

 PyAffineMap (PyMlirContextRef contextRef, MlirAffineMap affineMap)
 
bool operator== (const PyAffineMap &other) const
 
 operator MlirAffineMap () const
 
MlirAffineMap get () const
 
nanobind::object getCapsule ()
 Gets a capsule wrapping the void* within the MlirAffineMap. More...
 
- Public Member Functions inherited from mlir::python::BaseContextObject
 BaseContextObject (PyMlirContextRef ref)
 
PyMlirContextRefgetContext ()
 Accesses the context reference. More...
 

Static Public Member Functions

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

Detailed Description

Definition at line 1200 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyAffineMap()

mlir::python::PyAffineMap::PyAffineMap ( PyMlirContextRef  contextRef,
MlirAffineMap  affineMap 
)
inline

Definition at line 1202 of file IRModule.h.

Referenced by createFromCapsule().

Member Function Documentation

◆ createFromCapsule()

PyAffineMap PyAffineMap::createFromCapsule ( nanobind::object  capsule)
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 427 of file IRAffine.cpp.

References mlir::python::PyMlirContext::forContext(), mlirAffineMapGetContext(), mlirAffineMapIsNull(), mlirPythonCapsuleToAffineMap(), and PyAffineMap().

◆ get()

MlirAffineMap mlir::python::PyAffineMap::get ( ) const
inline

Definition at line 1206 of file IRModule.h.

◆ getCapsule()

nb::object PyAffineMap::getCapsule ( )

Gets a capsule wrapping the void* within the MlirAffineMap.

Definition at line 423 of file IRAffine.cpp.

References mlirPythonAffineMapToCapsule().

◆ operator MlirAffineMap()

mlir::python::PyAffineMap::operator MlirAffineMap ( ) const
inline

Definition at line 1205 of file IRModule.h.

◆ operator==()

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

Definition at line 419 of file IRAffine.cpp.

References mlirAffineMapEqual().


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