This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Support type bound procedure in type descriptors
ClosedPublic

Authored by jeanPerier on Feb 28 2023, 3:03 AM.

Details

Summary

In hlfir, procedure designators are propagated as fir.box_proc.
Derived type descriptors are compiler generated constant structure
constructors. They contain CFPTR components for the type bound
procedure addresses.
Before being cast to an integer type so that they can be stored
in the CFPTR components, the fir.box_proc addresses must be
obtained with a fir.box_addr.

Diff Detail

Event Timeline

jeanPerier created this revision.Feb 28 2023, 3:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 3:03 AM
jeanPerier requested review of this revision.Feb 28 2023, 3:03 AM
This revision is now accepted and ready to land.Feb 28 2023, 5:05 AM