This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add optional tdesc operand to fir.embox for polymorphic entities
ClosedPublic

Authored by clementval on Oct 12 2022, 12:40 PM.

Details

Summary

In some cases, it is useful to be able to embox a polymorphic entity
together with its dynamic type. This patch adds an optional tdesc operand
to fir.embox so the dynamic type can be provided while emboxing the entity.
This will be used in follow-up patch that lowers tbp calls for element of
polymorphic entities array.

Diff Detail

Event Timeline

clementval created this revision.Oct 12 2022, 12:40 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 12 2022, 12:40 PM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 12 2022, 12:40 PM

This all builds and tests correctly, but I'll leave it to Jean to approve.

jeanPerier accepted this revision.Oct 13 2022, 2:29 AM

Makes sense to me, looks good.

This revision is now accepted and ready to land.Oct 13 2022, 2:29 AM