[all-commits] [llvm/llvm-project] 43fade: [flang] Implement user-defined derived type runtim...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Jun 28 11:36:37 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 43fadefb0e77c56de7637c391cf98cf709b27095
https://github.com/llvm/llvm-project/commit/43fadefb0e77c56de7637c391cf98cf709b27095
Author: peter klausler <pklausler at nvidia.com>
Date: 2021-06-28 (Mon, 28 Jun 2021)
Changed paths:
M flang/include/flang/Common/format.h
M flang/lib/Semantics/check-declarations.cpp
M flang/runtime/CMakeLists.txt
M flang/runtime/derived.cpp
A flang/runtime/descriptor-io.cpp
M flang/runtime/descriptor-io.h
M flang/runtime/format-implementation.h
M flang/runtime/format.cpp
M flang/runtime/format.h
M flang/runtime/io-api.cpp
M flang/runtime/io-error.cpp
M flang/runtime/io-error.h
M flang/runtime/io-stmt.cpp
M flang/runtime/io-stmt.h
M flang/runtime/tools.cpp
M flang/runtime/type-info.cpp
M flang/runtime/type-info.h
M flang/runtime/unit-map.cpp
M flang/runtime/unit.cpp
M flang/runtime/unit.h
M flang/test/Semantics/typeinfo01.f90
Log Message:
-----------
[flang] Implement user-defined derived type runtime I/O
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.
Differential Revision: https://reviews.llvm.org/D104930
More information about the All-commits
mailing list