[flang-commits] [PATCH] D110291: [flang] Implement READ(SIZE=) and INQUIRE(IOLENGTH=) in runtime

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Sep 22 14:47:04 PDT 2021


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

Count input characters corresponding to formatted edit descriptors
for READ(SIZE=); count output bytes for INQUIRE(IOLENGTH=).

The I/O APIs GetSize() and GetLength() were adjusted to return
std::size_t as function results.

Basic unit tests were added (and others fixed).


https://reviews.llvm.org/D110291

Files:
  flang/include/flang/Runtime/io-api.h
  flang/runtime/descriptor-io.h
  flang/runtime/edit-input.cpp
  flang/runtime/io-api.cpp
  flang/runtime/io-stmt.cpp
  flang/runtime/io-stmt.h
  flang/runtime/unit.cpp
  flang/unittests/Runtime/ExternalIOTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110291.374372.patch
Type: text/x-patch
Size: 14468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210922/fc17bfd2/attachment-0001.bin>


More information about the flang-commits mailing list