|
MLIR 22.0.0git
|
Operations are exposed by the C-API as a forward-only linked list. More...
#include "mlir/Bindings/Python/IRCore.h"
Public Member Functions | |
| PyOperationList (PyOperationRef parentOperation, MlirBlock block) | |
| PyOperationIterator | dunderIter () |
| intptr_t | dunderLen () |
| nanobind::typed< nanobind::object, PyOpView > | dunderGetItem (intptr_t index) |
Static Public Member Functions | |
| static void | bind (nanobind::module_ &m) |
Operations are exposed by the C-API as a forward-only linked list.
In Python, we present them as a more full-featured list-like container but optimize it for forward iteration. Iterable operations are always owned by a block.
|
inline |
|
static |
Definition at line 379 of file IRCore.cpp.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::populateIRCore().
| nb::typed< nb::object, PyOpView > mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::dunderGetItem | ( | intptr_t | index | ) |
Definition at line 359 of file IRCore.cpp.
| PyOperationIterator mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::dunderIter | ( | ) |
Definition at line 342 of file IRCore.cpp.
References mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationIterator::dunderNext().
| intptr_t mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::dunderLen | ( | ) |
Definition at line 348 of file IRCore.cpp.
Referenced by mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOpOperand::getOwner().