[flang-commits] [PATCH] D132167: [flang] Support for character array formats

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Aug 18 11:28:58 PDT 2022


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

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


https://reviews.llvm.org/D132167

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132167.453738.patch
Type: text/x-patch
Size: 19786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220818/62736344/attachment-0001.bin>


More information about the flang-commits mailing list