|
MLIR 22.0.0git
|
Wrapper around an MlirBlock. More...
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| PyBlock (PyOperationRef parentOperation, MlirBlock block) | |
| MlirBlock | get () |
| PyOperationRef & | getParentOperation () |
| void | checkValid () |
| nanobind::object | getCapsule () |
| Gets a capsule wrapping the void* within the MlirBlock. | |
Wrapper around an MlirBlock.
Blocks are managed completely by their containing operation. Unlike the C++ API, the python API does not support detached blocks.
|
inline |
Definition at line 812 of file IRCore.h.
References mlirBlockIsNull().
|
inline |
|
inline |
Definition at line 817 of file IRCore.h.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpSuccessors::bindDerived(), and getCapsule().
| nb::object mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyBlock::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirBlock.
Definition at line 189 of file IRCore.cpp.
References get(), and mlirPythonBlockToCapsule().
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
|
inline |