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
 
pybind11::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 (pybind11::object capsule)
 Creates a PyAffineMap from the MlirAffineMap wrapped by a capsule. More...
 

Detailed Description

Definition at line 1190 of file IRModule.h.

Constructor & Destructor Documentation

◆ PyAffineMap()

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

Definition at line 1192 of file IRModule.h.

Referenced by createFromCapsule().

Member Function Documentation

◆ createFromCapsule()

PyAffineMap PyAffineMap::createFromCapsule ( pybind11::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 431 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 1196 of file IRModule.h.

◆ getCapsule()

py::object PyAffineMap::getCapsule ( )

Gets a capsule wrapping the void* within the MlirAffineMap.

Definition at line 427 of file IRAffine.cpp.

References mlirPythonAffineMapToCapsule().

◆ operator MlirAffineMap()

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

Definition at line 1195 of file IRModule.h.

◆ operator==()

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

Definition at line 423 of file IRAffine.cpp.

References mlirAffineMapEqual().


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