This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow conversion from boxed derived type to fir.class
ClosedPublic

Authored by clementval on Oct 7 2022, 6:55 AM.

Details

Summary

This patch updates the fir.convert operation's verifier to allow
conversion from !fir.box<!fir.type<T>> to !fir.class<!fir.type<T>>.

Other conversion involving fir.class are likely needed but will
be added when lowering needs them.

Diff Detail

Event Timeline

clementval created this revision.Oct 7 2022, 6:55 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 7 2022, 6:55 AM
PeteSteinfeld accepted this revision.Oct 7 2022, 7:27 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 7 2022, 7:27 AM