We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent affcc5e commit 227f759Copy full SHA for 227f759
mlir/lib/Bindings/Python/IRCore.cpp
@@ -3385,6 +3385,7 @@ void mlir::python::populateIRCore(nb::module_ &m) {
3385
.def(MLIR_PYTHON_CAPI_FACTORY_ATTR, &PyOperation::createFromCapsule)
3386
.def_prop_ro("operation", [](nb::object self) { return self; })
3387
.def_prop_ro("opview", &PyOperation::createOpView)
3388
+ .def_prop_ro("block", &PyOperation::getBlock)
3389
.def_prop_ro(
3390
"successors",
3391
[](PyOperationBase &self) {
0 commit comments