This is an archive of the discontinued LLVM Phabricator instance.

[Flang] enable fir.is_present and fir.absent with function types
ClosedPublic

Authored by kiranchandramohan on Jun 23 2022, 2:15 PM.

Details

Summary

Fortran dummy procedures and procedure pointer can be OPTIONAL, and
there is no technical reason to prevent fir.is_present and
fir.absent from accepting function types, so allow it and add test.

Note: This is part of upstreaming from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project. This patch is
basically upstreaming the following PR.
https://github.com/flang-compiler/f18-llvm-project/pull/1568

Co-authored-by: Jean Perier <jperier@nvidia.com>

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 23 2022, 2:15 PM
kiranchandramohan requested review of this revision.Jun 23 2022, 2:15 PM
This revision is now accepted and ready to land.Jun 23 2022, 9:21 PM