MLIR
20.0.0git
|
A TypeID provides an efficient and unique identifier for a specific C++ type. More...
#include "Bindings/Python/IRModule.h"
Public Member Functions | |
PyTypeID (MlirTypeID typeID) | |
bool | operator== (const PyTypeID &other) const |
operator MlirTypeID () const | |
MlirTypeID | get () |
nanobind::object | getCapsule () |
Gets a capsule wrapping the void* within the MlirTypeID. More... | |
Static Public Member Functions | |
static PyTypeID | createFromCapsule (nanobind::object capsule) |
Creates a PyTypeID from the MlirTypeID wrapped by a capsule. More... | |
A TypeID provides an efficient and unique identifier for a specific C++ type.
This allows for a C++ type to be compared, hashed, and stored in an opaque context. This class wraps around the generic MlirTypeID.
Definition at line 901 of file IRModule.h.
|
inline |
Definition at line 903 of file IRModule.h.
Referenced by createFromCapsule().
|
static |
Creates a PyTypeID from the MlirTypeID wrapped by a capsule.
Definition at line 2005 of file IRCore.cpp.
References mlirPythonCapsuleToTypeID(), mlirTypeIDIsNull(), and PyTypeID().
|
inline |
Definition at line 909 of file IRModule.h.
nb::object PyTypeID::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirTypeID.
Definition at line 2001 of file IRCore.cpp.
References mlirPythonTypeIDToCapsule().
|
inline |
Definition at line 908 of file IRModule.h.
bool PyTypeID::operator== | ( | const PyTypeID & | other | ) | const |
Definition at line 2011 of file IRCore.cpp.
References mlirTypeIDEqual().