[flang] Implement NAMELIST I/O in the runtime
authorpeter klausler <pklausler@nvidia.com>
Wed, 5 May 2021 18:37:49 +0000 (11:37 -0700)
committerpeter klausler <pklausler@nvidia.com>
Thu, 6 May 2021 18:18:36 +0000 (11:18 -0700)
commit6a1c3efa051e012aaf102b7d9e7e428a58ea8ad9
tree48314cc1b0472421549fc0a00a24cc8b6da67e8c
parent306370be0bf2257124c262ae5c8a7a7180eb42a0
[flang] Implement NAMELIST I/O in the runtime

Add InputNamelist and OutputNamelist as I/O data transfer APIs
to be used with internal & external list-directed I/O; delete the
needless original namelist-specific Begin... calls.
Implement NAMELIST output and input; add basic tests.

Differential Revision: https://reviews.llvm.org/D101931
23 files changed:
flang/include/flang/ISO_Fortran_binding.h
flang/lib/Lower/IO.cpp
flang/lib/Lower/RTBuilder.h
flang/runtime/CMakeLists.txt
flang/runtime/connection.cpp
flang/runtime/connection.h
flang/runtime/descriptor-io.h
flang/runtime/descriptor.cpp
flang/runtime/descriptor.h
flang/runtime/edit-input.cpp
flang/runtime/edit-output.cpp
flang/runtime/format.h
flang/runtime/io-api.cpp
flang/runtime/io-api.h
flang/runtime/io-stmt.cpp
flang/runtime/io-stmt.h
flang/runtime/namelist.cpp [new file with mode: 0644]
flang/runtime/namelist.h [new file with mode: 0644]
flang/runtime/unit.cpp
flang/unittests/RuntimeGTest/CMakeLists.txt
flang/unittests/RuntimeGTest/Namelist.cpp [new file with mode: 0644]
flang/unittests/RuntimeGTest/NumericalFormatTest.cpp
flang/unittests/RuntimeGTest/tools.h