[all-commits] [llvm/llvm-project] bafbae: [flang] Initial UTF-8 support in runtime I/O

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Mar 22 11:48:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bafbae238aa1948aa511c734a613a95d89a72546
      https://github.com/llvm/llvm-project/commit/bafbae238aa1948aa511c734a613a95d89a72546
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-22 (Tue, 22 Mar 2022)

  Changed paths:
    M flang/include/flang/Runtime/iostat.h
    M flang/runtime/CMakeLists.txt
    M flang/runtime/descriptor-io.h
    M flang/runtime/edit-input.cpp
    M flang/runtime/edit-input.h
    M flang/runtime/edit-output.cpp
    M flang/runtime/edit-output.h
    M flang/runtime/environment.cpp
    M flang/runtime/environment.h
    M flang/runtime/internal-unit.cpp
    M flang/runtime/internal-unit.h
    M flang/runtime/io-stmt.cpp
    M flang/runtime/io-stmt.h
    M flang/runtime/iostat.cpp
    M flang/runtime/namelist.cpp
    M flang/runtime/unit.cpp
    M flang/runtime/unit.h
    A flang/runtime/utf.cpp
    A flang/runtime/utf.h
    M flang/unittests/Runtime/ExternalIOTest.cpp

  Log Message:
  -----------
  [flang] Initial UTF-8 support in runtime I/O

Implements UTF-8 encoding and decoding for external units
with OPEN(ENCODING='UTF-8').  This encoding applies to default
CHARACTER values that are not 7-bit ASCII as well as to
the wide CHARACTER kinds 2 and 4.  Basic testing is in place
via direct calls to the runtime I/O APIs, but serious checkout
awaits lowering support of the wide CHARACTER kinds.

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




More information about the All-commits mailing list