This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Better support for variadic regions in Python bindings
ClosedPublic

Authored by ftynse on Oct 14 2021, 2:16 AM.

Details

Summary

Improve support for variadic regions in ODS-generated operation view classes.
In particular, make generated constructors take an extra argument that
specifies the number of variadic regions if the operation has them. Previously,
there was no mechanism to specify a non-zero number of variadic regions. Also
generate named accessors to regions.

Diff Detail

Event Timeline

ftynse created this revision.Oct 14 2021, 2:16 AM
ftynse requested review of this revision.Oct 14 2021, 2:16 AM
gysit accepted this revision.Oct 14 2021, 2:54 AM

LGTM!

This revision is now accepted and ready to land.Oct 14 2021, 2:54 AM