MLIR 22.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList Class Reference

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, PyOpViewdunderGetItem (intptr_t index)

Static Public Member Functions

static void bind (nanobind::module_ &m)

Detailed Description

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.

Definition at line 1473 of file IRCore.h.

Constructor & Destructor Documentation

◆ PyOperationList()

mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::PyOperationList ( PyOperationRef parentOperation,
MlirBlock block )
inline

Definition at line 1475 of file IRCore.h.

Member Function Documentation

◆ bind()

void mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::bind ( nanobind::module_ & m)
static

◆ dunderGetItem()

nb::typed< nb::object, PyOpView > mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::dunderGetItem ( intptr_t index)

Definition at line 359 of file IRCore.cpp.

◆ dunderIter()

PyOperationIterator mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::dunderIter ( )

◆ dunderLen()

intptr_t mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperationList::dunderLen ( )

The documentation for this class was generated from the following files: