This is an archive of the discontinued LLVM Phabricator instance.

[flang][codegen] ensure descriptor lower bounds are LBOUND compliant
ClosedPublic

Authored by jeanPerier on Mar 24 2022, 10:28 AM.

Details

Summary

Follow-up of https://reviews.llvm.org/D121488 to ensure all descriptors
created inline complies with LBOUND requirement that the lower bound is
1 when the related dimension extent is zero.

Both fir.xrebox and fir.xembox codegen is updated to enforce this
constraint.

Also upstream the "normalized lower bound" attribute that was added in fir-dev
since embox codegen was upstreamed, it is conflicting with this patch
otherwise.

Diff Detail

Event Timeline

jeanPerier created this revision.Mar 24 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2022, 10:28 AM
jeanPerier requested review of this revision.Mar 24 2022, 10:28 AM
This revision is now accepted and ready to land.Mar 24 2022, 10:31 AM