This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fold intrinsic functions SPACING() and RRSPACING()
ClosedPublic

Authored by klausler on May 6 2022, 8:42 AM.

Details

Summary

The related real number system inquiry functions SPACING()
and RRSPACING() can be folded for constant arguments.
See 16.9.164 & 16.9.180 in Fortran 2018.

Diff Detail

Event Timeline

klausler created this revision.May 6 2022, 8:42 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.May 6 2022, 8:42 AM
PeteSteinfeld accepted this revision.May 6 2022, 10:28 AM

All builds and test correctly and looks good.

This revision is now accepted and ready to land.May 6 2022, 10:28 AM