This is an archive of the discontinued LLVM Phabricator instance.

[flang] system_clock intrinsic calls with dynamically optional arguments
ClosedPublic

Authored by clementval on Jun 13 2022, 1:20 AM.

Details

Summary

system_clock intrinsic calls with dynamically optional arguments

Modify intrinsic system_clock calls to allow for an argument that is optional
or a disassociated pointer or an unallocated allocatable. A call with such an
argument is the same as a call that does not specify that argument.

Rename (genIsNotNull -> genIsNotNullAddr) and (genIsNull -> genIsNullAddr)
and add a use of genIsNotNullAddr.

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

Co-authored-by: V Donaldson <vdonaldson@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Jun 13 2022, 1:20 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 13 2022, 1:20 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jun 13 2022, 1:20 AM
PeteSteinfeld accepted this revision.Jun 13 2022, 6:35 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jun 13 2022, 6:35 AM