hanchenye-llvm-project/flang/unittests
Jean Perier b3e392c081 [flang] Implement Posix version of DATE_AND_TIME runtime
Use gettimeofday and localtime_r to implement DATE_AND_TIME intrinsic.
The Windows version fallbacks to the "no date and time information
available" defined by the standard (strings set to blanks and values to
-HUGE).

The implementation uses an ifdef between windows and the rest because
from my tests, the SFINAE approach leads to undeclared name bogus errors
with clang 8 that seems to ignore failure to instantiate is not an error
for the function names (i.e., it understands it should not instantiate
the version using gettimeofday if it is not there, but still yields an
error that it is not declared on the spot where it is called in the
uninstantiated version).

Differential Revision: https://reviews.llvm.org/D108622
2021-08-25 11:16:52 +02:00
..
Decimal
Evaluate Change the flang reshape runtime routine interface to use a result 2021-06-24 17:05:12 -07:00
Frontend [flang][nfc] Fix variable names in `FrontendOptions` & `PreprocessorOptions` 2021-08-02 10:08:31 +00:00
Optimizer
Runtime [flang] Implement Posix version of DATE_AND_TIME runtime 2021-08-25 11:16:52 +02:00
CMakeLists.txt [flang][driver] Delete `f18` (i.e. the old Flang driver) 2021-08-05 12:57:15 +00:00