This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use tdesc on fir.embox in code generation
ClosedPublic

Authored by clementval on Oct 26 2022, 2:13 AM.

Details

Summary

For polymoprhic entities, the type descriptor is dynamic. The tdesc
operand on fir.embox is meant to propagate the dynamic type when
embox a polymorphic entity.
This patch makes use of this operand in code generation and update
the created descriptor accordingly.

Diff Detail

Event Timeline

clementval created this revision.Oct 26 2022, 2:13 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 26 2022, 2:13 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 26 2022, 2:13 AM

Fix patch application

jeanPerier accepted this revision.Oct 26 2022, 4:31 AM

It looks like lib/Optimizer/CodeGen/CodeGen.cpp needs to go through clang-format. LGTM otherwise.

This revision is now accepted and ready to land.Oct 26 2022, 4:31 AM

clang-format

This revision was automatically updated to reflect the committed changes.