Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/Bindings/Python/
H A DIRCore.cpp254 class PyBlockIterator { class
256 PyBlockIterator(PyOperationRef operation, MlirBlock next) in PyBlockIterator() function in __anon7f4419ab0111::PyBlockIterator
259 PyBlockIterator &dunderIter() { return *this; } in dunderIter()
273 py::class_<PyBlockIterator>(m, "BlockIterator", py::module_local()) in bind()
274 .def("__iter__", &PyBlockIterator::dunderIter) in bind()
275 .def("__next__", &PyBlockIterator::dunderNext); in bind()
291 PyBlockIterator dunderIter() { in dunderIter()
293 return PyBlockIterator(operation, mlirRegionGetFirstBlock(region)); in dunderIter()
2748 return PyBlockIterator(self.getParentOperation(), firstBlock); in populateIRCore()
3186 PyBlockIterator::bind(m); in populateIRCore()