[mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator
authorRahul Kayaith <rkayaith@gmail.com>
Thu, 25 May 2023 02:05:06 +0000 (22:05 -0400)
committerRahul Kayaith <rkayaith@gmail.com>
Thu, 25 May 2023 02:16:58 +0000 (22:16 -0400)
commitd0d26ee78cde3402fbc1fe445bcbcfc7606fbcd1
treebe52de78dd32b9b985123f45b96de5df1151b723
parent693a1b7024b81655760e209b73b3ef339e161d76
[mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator

This fixes a -Wunused-member-function warning, at the moment
`PyRegionIterator` is never constructed by anything (the only use was
removed in D111697), and iterating over region lists is just falling
back to a generic python iterator object.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D150244
mlir/lib/Bindings/Python/IRCore.cpp
mlir/test/python/ir/operation.py