This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add TODO for polymorphic array argument in elemental procedure
ClosedPublic

Authored by jeanPerier on Apr 12 2023, 2:23 AM.

Details

Summary

The current lowering fails to retrieve the shape of polymorphic array
arguments in elemental procedure reference.
Add a TODO because this is supported in the new HLFIR lowering, and
because the current lowering anyway attempts to re-evaluate the
argument to get its shape, which is not correct if the evaluation
has side effects.

Add a test to ensure this is supported with HLFIR.

Diff Detail

Event Timeline

jeanPerier created this revision.Apr 12 2023, 2:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2023, 2:23 AM
jeanPerier requested review of this revision.Apr 12 2023, 2:23 AM
PeteSteinfeld accepted this revision.Apr 12 2023, 6:09 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Apr 12 2023, 6:09 AM