This is an archive of the discontinued LLVM Phabricator instance.

[flang] Accept sparse argument keyword names for MAX/MIN
ClosedPublic

Authored by klausler on Jan 19 2022, 10:17 AM.

Details

Summary

Accept any keyword argument names of the form "An" for
values of n >= 3 in calls to the intrinsic functions MAX, MIN,
and their variants, so long as "n" has no leading zero and
all the keywords are distinct. Previously, f18 was needlessly
requiring the names to be contiguous. When synthesizing keywords
to characterize the procedure's interface, don't conflict with
the program's keywords.

Diff Detail

Event Timeline

klausler created this revision.Jan 19 2022, 10:17 AM
klausler requested review of this revision.Jan 19 2022, 10:17 AM
PeteSteinfeld accepted this revision.Jan 19 2022, 11:20 AM

All builds, tests, and looks good.

This revision is now accepted and ready to land.Jan 19 2022, 11:20 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2022, 5:36 PM