This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Apply component lower bounds in hlfir.designate codegen
ClosedPublic

Authored by jeanPerier on Apr 18 2023, 5:00 AM.

Details

Summary

The array component indices in the "path" of a fir.slice are zero based
because FIR does not know about the component lower bounds.
When lowering hlfir.designate to FIR for array%x(i, j), convert i and
j to zero based indices before generating the fir.slice.

Diff Detail

Event Timeline

jeanPerier created this revision.Apr 18 2023, 5:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 5:00 AM
jeanPerier requested review of this revision.Apr 18 2023, 5:00 AM
vzakhari accepted this revision.Apr 18 2023, 8:38 AM

Thank you!

This revision is now accepted and ready to land.Apr 18 2023, 8:38 AM