This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Support for DWARF attribute DW_AT_rank
ClosedPublic

Authored by alok on Oct 9 2020, 9:40 AM.

Details

Summary

This patch adds support for DWARF attribute DW_AT_rank.

Summary:

Fortran assumed rank arrays have dynamic rank. DWARF attribute
DW_AT_rank is needed to support that.

Testing:

unit test cases added (hand-written)
check llvm
check debug-info

Diff Detail

Event Timeline

alok created this revision.Oct 9 2020, 9:40 AM
alok requested review of this revision.Oct 9 2020, 9:40 AM
aprantl accepted this revision.Oct 9 2020, 12:54 PM

This looks reasonable. At some point we are crossing over the threshold where we should split out a DI(Fortran?)Array subclass so we don't have to pay for all the extra fields in every type.

This revision is now accepted and ready to land.Oct 9 2020, 12:54 PM
This revision was automatically updated to reflect the committed changes.