|
MLIR 22.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. | |
Static Public Member Functions | |
| static PyTypeID | createFromCapsule (nanobind::object capsule) |
| Creates a PyTypeID from the MlirTypeID wrapped by a capsule. | |
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 904 of file IRModule.h.
|
inline |
Definition at line 906 of file IRModule.h.
Referenced by createFromCapsule(), and operator==().
|
static |
Creates a PyTypeID from the MlirTypeID wrapped by a capsule.
Definition at line 2107 of file IRCore.cpp.
References mlirPythonCapsuleToTypeID(), mlirTypeIDIsNull(), and PyTypeID().
|
inline |
Definition at line 912 of file IRModule.h.
| nb::object PyTypeID::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirTypeID.
Definition at line 2103 of file IRCore.cpp.
References mlirPythonTypeIDToCapsule().
|
inline |
Definition at line 911 of file IRModule.h.
Definition at line 2113 of file IRCore.cpp.
References mlirTypeIDEqual(), and PyTypeID().