This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle polymorphic passed object in elemental call
ClosedPublic

Authored by clementval on Dec 7 2022, 6:31 AM.

Details

Summary

The passed object is placed in the passed arguments by semantics.
When the TBP to be called is an elemental subroutine or function it has to be
handled accordingly.

Diff Detail

Event Timeline

clementval created this revision.Dec 7 2022, 6:31 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 7 2022, 6:31 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Dec 7 2022, 6:31 AM

Looks good

flang/lib/Lower/ConvertExpr.cpp
4671

Same as fir::unwrapSequenceType I think.

jeanPerier accepted this revision.Dec 7 2022, 8:58 AM
This revision is now accepted and ready to land.Dec 7 2022, 8:58 AM
clementval updated this revision to Diff 480950.Dec 7 2022, 9:16 AM

Replace TypeSwitch with fir::unwrapSequenceType

clementval marked an inline comment as done.Dec 7 2022, 9:17 AM
clementval added inline comments.
flang/lib/Lower/ConvertExpr.cpp
4671

Yes. Thanks.

PeteSteinfeld accepted this revision.Dec 7 2022, 11:38 AM

All builds and tests correctly and looks good.

clementval marked an inline comment as done.

Rebase again

This revision was landed with ongoing or failed builds.Dec 8 2022, 12:48 AM
This revision was automatically updated to reflect the committed changes.