This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower function return to HLFIR
ClosedPublic

Authored by jeanPerier on Dec 2 2022, 7:25 AM.

Details

Summary

The only special thing that is needed is to update the bridge symbol
lookup to deal with the HLFIR symbol lookup (symbols are mapped to
fir::FortranVariableInterface operations, not Fortran::Lower::SymbolBox).

Diff Detail

Event Timeline

jeanPerier created this revision.Dec 2 2022, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2022, 7:25 AM
jeanPerier requested review of this revision.Dec 2 2022, 7:25 AM

These changes look OK to me, but I can't verify the build because, when I build, I get the same error mentioned in D139196.

Rebase so that D139196 fix is incorporated.

These changes look OK to me, but I can't verify the build because, when I build, I get the same error mentioned in D139196.

Thanks for testing @PeteSteinfeld. I rebased the patch so the issue should now be gone.

PeteSteinfeld accepted this revision.Dec 2 2022, 11:40 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Dec 2 2022, 11:40 AM
This revision was automatically updated to reflect the committed changes.