This is an archive of the discontinued LLVM Phabricator instance.

[flang] DATA stmt processing (part 1/4): designator folding
ClosedPublic

Authored by klausler on Jun 18 2020, 1:36 PM.

Details

Summary

Add code to resolve constant Designators at compilation time
into a base Symbol, byte offset, and field size. This is used in
later DATA statement processing to identify the static storage being
initialized by each object in a DATA statement. Also implement
the reverse mapping so that Designators can be reconstructed for
use in error messages about (e.g.) duplicate initializers.

Diff Detail

Event Timeline

klausler created this revision.Jun 18 2020, 1:36 PM
Herald added a project: Restricted Project. · View Herald Transcript
PeteSteinfeld accepted this revision.Jun 18 2020, 3:19 PM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Jun 18 2020, 3:19 PM
This revision was automatically updated to reflect the committed changes.