This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Hook up PyRegionList.__iter__ to PyRegionIterator
ClosedPublic

Authored by rkayaith on May 9 2023, 8:19 PM.

Details

Summary

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.

Diff Detail

Event Timeline

rkayaith created this revision.May 9 2023, 8:19 PM
Herald added a project: Restricted Project. · View Herald Transcript
rkayaith published this revision for review.May 9 2023, 8:52 PM
rkayaith added a reviewer: stellaraccident.
rkayaith added inline comments.
mlir/lib/Bindings/Python/IRCore.cpp
320

alternatively I could just remove PyRegionIterator, i'm not sure if there's any significant advantage to using it here?

stellaraccident accepted this revision.May 9 2023, 9:05 PM
stellaraccident added inline comments.
mlir/lib/Bindings/Python/IRCore.cpp
320

I don't think I have an opinion.

This revision is now accepted and ready to land.May 9 2023, 9:05 PM