MLIR
20.0.0git
|
Wrapper around an MlirBlock. More...
#include "Bindings/Python/IRModule.h"
Public Member Functions | |
PyBlock (PyOperationRef parentOperation, MlirBlock block) | |
MlirBlock | get () |
PyOperationRef & | getParentOperation () |
void | checkValid () |
pybind11::object | getCapsule () |
Gets a capsule wrapping the void* within the MlirBlock. More... | |
Wrapper around an MlirBlock.
Blocks are managed completely by their containing operation. Unlike the C++ API, the python API does not support detached blocks.
Definition at line 820 of file IRModule.h.
|
inline |
Definition at line 822 of file IRModule.h.
References mlirBlockIsNull().
|
inline |
Definition at line 830 of file IRModule.h.
References mlir::python::PyOperation::checkValid().
|
inline |
Definition at line 827 of file IRModule.h.
Referenced by mlir::python::PyInsertionPoint::atBlockBegin(), and mlir::python::PyInsertionPoint::atBlockTerminator().
py::object PyBlock::getCapsule | ( | ) |
Gets a capsule wrapping the void* within the MlirBlock.
Definition at line 292 of file IRCore.cpp.
References mlir::get(), and mlirPythonBlockToCapsule().
|
inline |
Definition at line 828 of file IRModule.h.
Referenced by mlir::python::PyInsertionPoint::atBlockBegin(), mlir::python::PyInsertionPoint::atBlockTerminator(), and mlir::python::PyThreadContextEntry::pushInsertionPoint().