5 Commits

Author SHA1 Message Date
Slava Zakharin
e0738cc658
[flang] Moved REAL(16) RANDOM_NUMBER to Float128Math library. (#85002) 2024-03-13 08:26:33 -07:00
Tom Eccles
afa52de9f6 [flang][Runtime] Add SIGNAL intrinisic (#79337)
The intrinsic is defined as a GNU extension here:
https://gcc.gnu.org/onlinedocs/gfortran/SIGNAL.html

And as an IBM extension here:
https://www.ibm.com/docs/en/xffbg/121.141?topic=procedures-signali-proc-extension

The IBM version provides a compatible subset of the functionality
offered by the GNU version. This patch supports most of the GNU
features, but not calling SIGNAL as a function. We don't currently
support intrinsics being both subroutines AND functions and this changed
seemed too large to be justified by a non-standard intrinsic.

I cannot point to open source code Fortran using this intrinsic. This is
needed for a proprietary code base.
2024-01-26 14:20:50 +00:00
Tom Eccles
b64c26f34f
[flang][runtime] Implement SLEEP intrinsic (#79074)
This intrinsic is a gnu extension. See
https://gcc.gnu.org/onlinedocs/gfortran/SLEEP.html

This intrinsic is used in minighost:
c2102b5215/ref/MG_UTILS.F (L606)
2024-01-26 11:09:29 +00:00
Peter Steinfeld
5c000df215 [flang] [NFC] Remove an unneeded include.
The title says it all.

Differential Revision: https://reviews.llvm.org/D151712
2023-05-30 10:09:55 -07:00
Tom Eccles
18ed49d255 [flang][NFC] Move runtime helpers used by intrinsics to lib/Optimizer 3/6
This will allow IntrinsicCall to be moved into lib/Optimizer later.

Differential Revision: https://reviews.llvm.org/D143081
2023-02-06 10:33:20 +00:00