This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept assumed shape arrays as SHAPE in C_F_POINTER
ClosedPublic

Authored by jeanPerier on Sep 6 2022, 4:30 AM.

Details

Summary

C_F_POINTER was added in https://reviews.llvm.org/D132303, but the code
assumed that SHAPE would always be an explicit shape with compile time
constant rank. It can actually be an assumed shape, or an explicit shape
with non compile time constant rank. Get the rank from FPTR pointer
instead.

Diff Detail

Event Timeline

jeanPerier created this revision.Sep 6 2022, 4:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 6 2022, 4:30 AM
jeanPerier requested review of this revision.Sep 6 2022, 4:30 AM
peixin accepted this revision.Sep 6 2022, 4:38 AM

Thanks. LGTM.

This revision is now accepted and ready to land.Sep 6 2022, 4:38 AM