This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower symbols to hlfir.declare
ClosedPublic

Authored by jeanPerier on Nov 14 2022, 7:23 AM.

Details

Summary

Update lowering to generate hlfir.declare instead of fir.declare.
Introduce the hlfir::Entity class that will be used to work with
Fortran objects in HLFIR transformation.

Fix lower bounds that where swapped with extents in fir.declare
generation.

Update tests that expected fir.declare.

Diff Detail

Event Timeline

jeanPerier created this revision.Nov 14 2022, 7:23 AM
Herald added a project: Restricted Project. · View Herald Transcript
jeanPerier requested review of this revision.Nov 14 2022, 7:23 AM
PeteSteinfeld accepted this revision.Nov 14 2022, 9:08 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Nov 14 2022, 9:08 AM
This revision was automatically updated to reflect the committed changes.