Home
last modified time | relevance | path

Searched refs:PyBlockIterator (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/mlir/lib/Bindings/Python/
DIRModules.cpp219 class PyBlockIterator { class
221 PyBlockIterator(PyOperationRef operation, MlirBlock next) in PyBlockIterator() function in __anon49d064020111::PyBlockIterator
224 PyBlockIterator &dunderIter() { return *this; } in dunderIter()
238 py::class_<PyBlockIterator>(m, "BlockIterator") in bind()
239 .def("__iter__", &PyBlockIterator::dunderIter) in bind()
240 .def("__next__", &PyBlockIterator::dunderNext); in bind()
256 PyBlockIterator dunderIter() { in dunderIter()
258 return PyBlockIterator(operation, mlirRegionGetFirstBlock(region)); in dunderIter()
2909 return PyBlockIterator(self.getParentOperation(), firstBlock); in populateIRSubmodule()
3205 PyBlockIterator::bind(m); in populateIRSubmodule()