This is an archive of the discontinued LLVM Phabricator instance.

[flang] Support lowering of intrinsic GET_COMMAND
ClosedPublic

Authored by peixin on Nov 12 2022, 1:08 AM.

Details

Summary

As Fortran 2018 16.9.82, all the arguments of GET_COMMAND are optional.
When they are all absent, do nothing so to be consistent with gfortran
and ifort. The semantic analysis and runtime have been supported.

This intrinsic was introduced from F2003, and this supports the lowering
of it.

Diff Detail

Event Timeline

peixin created this revision.Nov 12 2022, 1:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 12 2022, 1:08 AM
peixin requested review of this revision.Nov 12 2022, 1:08 AM
PeteSteinfeld accepted this revision.Nov 13 2022, 6:30 PM

All builds and tests correctly and looks good.

Thanks for implementing this!

This revision is now accepted and ready to land.Nov 13 2022, 6:30 PM
jeanPerier accepted this revision.Nov 16 2022, 12:26 AM

LGTM, thanks

This revision was automatically updated to reflect the committed changes.
peixin updated this revision to Diff 476670.Nov 19 2022, 1:04 AM

Rebase to fix the FIR FileCheck fail caused by fastmath problem.

peixin reopened this revision.Nov 19 2022, 1:04 AM
This revision is now accepted and ready to land.Nov 19 2022, 1:04 AM
This revision was automatically updated to reflect the committed changes.