[flang] Add CALL FLUSH(n) legacy extension
authorPeter Klausler <pklausler@nvidia.com>
Tue, 7 Dec 2021 22:38:17 +0000 (14:38 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Wed, 8 Dec 2021 16:56:54 +0000 (08:56 -0800)
commit627a8ac7903f26117faa782a27d2e87e9d0915c2
treefba8e7282ed3dcb0c3051b9fd73054591089e727
parente9179a6a029a501524cf3f34434c9dc2be4d74cc
[flang] Add CALL FLUSH(n) legacy extension

Prior to the introduction of the FLUSH statement in Fortran 2003,
implementations provided a FLUSH subroutine.

We can't yet put Fortran code into the runtime, so this subroutine
is in C++ with a Fortran-mangled entry point name.

Differential Revision: https://reviews.llvm.org/D115289
flang/include/flang/Runtime/extensions.h [new file with mode: 0644]
flang/runtime/CMakeLists.txt
flang/runtime/extensions.cpp [new file with mode: 0644]