[all-commits] [llvm/llvm-project] cc180f: [flang] Support for character array formats

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 18 15:36:10 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc180f4c8cd9a03fe737ed98abb5e54aaacf4ba8
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M flang/include/flang/Runtime/io-api.h
    M flang/lib/Semantics/check-io.cpp
    M flang/runtime/format-implementation.h
    M flang/runtime/format.h
    M flang/runtime/io-api.cpp
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h
    M flang/test/Semantics/assign06.f90

  Log Message:
  [flang] Support for character array formats

A character array can be used as a format in an I/O data transfer
statement, with the interpretation that its elements are concatenated
in element order to constitute the format.

Support in the runtime with an extra optional descriptor argument
to six I/O API calls; support in semantics by removing an earlier
check for a simply contiguous array presented as a format.

Some work needs to be done in lowering to pass a character array
descriptor to the I/O runtime API when present

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

More information about the All-commits mailing list