This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower function and subroutine calls
ClosedPublic

Authored by clementval on Feb 23 2022, 9:40 AM.

Details

Summary

This patch introduce basic function/subroutine calls.
Because of the state of lowering only simple scalar arguments
can be used in the calls. This will be enhanced in follow up
patches with arrays, allocatable, pointer ans so on.

subroutine sub1()
end

subroutine sub2()
  call sub1()
end

This patch is part of the upstreaming effort from fir-dev branch.

Diff Detail

Event Timeline

clementval created this revision.Feb 23 2022, 9:40 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Feb 23 2022, 9:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 23 2022, 9:40 AM
schweitz accepted this revision.Feb 23 2022, 10:26 AM
This revision is now accepted and ready to land.Feb 23 2022, 10:26 AM
This revision was automatically updated to reflect the committed changes.