This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix codegen of subcomponents' indexing
ClosedPublic

Authored by luporl on Jun 30 2023, 6:27 AM.

Details

Summary

Identify multidimensional array indices in subcomponents and
convert them from column-major to row-major ordering.

This fixes codegen for fircg.ext_array_coor, fircg.ext_embox and,
possibly, fircg.ext_rebox.

Fixes https://github.com/llvm/llvm-project/issues/62038

Diff Detail

Event Timeline

luporl created this revision.Jun 30 2023, 6:27 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 30 2023, 6:27 AM
luporl published this revision for review.Jun 30 2023, 6:33 AM
jeanPerier accepted this revision.Jun 30 2023, 7:04 AM

Thanks, looks great!

This revision is now accepted and ready to land.Jun 30 2023, 7:04 AM
This revision was automatically updated to reflect the committed changes.