[all-commits] [llvm/llvm-project] 4393e3: [flang] Implement READ(SIZE=) and INQUIRE(IOLENGTH...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Sep 23 10:28:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4393e3776b41471afbd37cb13fe5b777243fedd1
      https://github.com/llvm/llvm-project/commit/4393e3776b41471afbd37cb13fe5b777243fedd1
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

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

  Log Message:
  -----------
  [flang] Implement READ(SIZE=) and INQUIRE(IOLENGTH=) in runtime

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).

Differential Revision: https://reviews.llvm.org/D110291




More information about the All-commits mailing list