[flang-commits] [PATCH] D104930: [flang] Implement user-defined derived type runtime I/O

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jun 25 10:41:46 PDT 2021


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

With derived type description tables now available to the
runtime library, it is possible to implement the concept
of "child" I/O statements in the runtime and use them to
convert instances of derived type I/O data transfers into
calls to user-defined subroutines when they have been specified
for a type.  (See Fortran 2018, subclauses 12.6.4.8 & 13.7.6).

- Support formatted, list-directed, and NAMELIST transfers to internal parent units; support these, and unformatted transfers, for external parent units.
- Support nested child defined derived type I/O.
- Parse DT'foo'(v-list) FORMAT data edit descriptors and passes their strings &/or v-list values as arguments to the defined formatted I/O routines.
- Fix problems with this feature encountered in semantics and FORMAT valiation during development and end-to-end testing.
- Convert typeInfo::SpecialBinding from a struct to a class after adding a member function.


https://reviews.llvm.org/D104930

Files:
  flang/include/flang/Common/format.h
  flang/lib/Semantics/check-declarations.cpp
  flang/runtime/CMakeLists.txt
  flang/runtime/derived.cpp
  flang/runtime/descriptor-io.cpp
  flang/runtime/descriptor-io.h
  flang/runtime/format-implementation.h
  flang/runtime/format.cpp
  flang/runtime/format.h
  flang/runtime/io-api.cpp
  flang/runtime/io-error.cpp
  flang/runtime/io-error.h
  flang/runtime/io-stmt.cpp
  flang/runtime/io-stmt.h
  flang/runtime/tools.cpp
  flang/runtime/type-info.cpp
  flang/runtime/type-info.h
  flang/runtime/unit-map.cpp
  flang/runtime/unit.cpp
  flang/runtime/unit.h
  flang/test/Semantics/typeinfo01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104930.354551.patch
Type: text/x-patch
Size: 79098 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210625/27d1062f/attachment-0001.bin>


More information about the flang-commits mailing list