This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle dispatch on nopass procedure from array element
ClosedPublic

Authored by clementval on Nov 2 2022, 7:56 AM.

Details

Summary

When a fir.dispatch is done with a NOPASS type-bound
procedure, the object in fir.dispatch is just used to gather the vtable.
Therefore, no transformation is done on it and the original entity
is used. The current code generation didn't expect the entity to be an array.
This patch update the code generation to be able to retrieve the vtable
accordingly.

Diff Detail

Event Timeline

clementval created this revision.Nov 2 2022, 7:56 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 2 2022, 7:56 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Nov 2 2022, 7:56 AM
PeteSteinfeld accepted this revision.Nov 2 2022, 8:42 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Nov 2 2022, 8:42 AM