[all-commits] [llvm/llvm-project] af63d1: [flang] GET_COMMAND_ARGUMENT(LENGTH) runtime imple...

Diana via All-commits all-commits at lists.llvm.org
Tue Sep 28 01:38:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af63d1791b102ed8bdd8b836ce8ab773c019d1a1
      https://github.com/llvm/llvm-project/commit/af63d1791b102ed8bdd8b836ce8ab773c019d1a1
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M flang/include/flang/Runtime/command.h
    M flang/runtime/command.cpp
    M flang/test/Runtime/no-cpp-dep.c
    M flang/unittests/Runtime/CommandTest.cpp

  Log Message:
  -----------
  [flang] GET_COMMAND_ARGUMENT(LENGTH) runtime implementation

Implement the ArgumentLength entry point of GET_COMMAND_ARGUMENT. Also
introduce a fixture for the tests.

Note that this also changes the interface for ArgumentLength from
returning a 4-byte integer to returning an 8-byte integer.

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


  Commit: df6302311f88d0fbc666b6277d029aa371039945
      https://github.com/llvm/llvm-project/commit/df6302311f88d0fbc666b6277d029aa371039945
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M flang/runtime/command.cpp
    M flang/test/Runtime/no-cpp-dep.c
    M flang/unittests/Runtime/CommandTest.cpp

  Log Message:
  -----------
  [flang] GET_COMMAND_ARGUMENT(VALUE) runtime implementation

Partial implementation for the second entry point for
GET_COMMAND_ARGUMENT. It handles the VALUE and STATUS arguments, and
doesn't touch ERRMSG.

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


  Commit: 0446f1299f6be9fd35bc5f458c78b34dca3105f6
      https://github.com/llvm/llvm-project/commit/0446f1299f6be9fd35bc5f458c78b34dca3105f6
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M flang/include/flang/Runtime/magic-numbers.h
    M flang/runtime/command.cpp
    M flang/runtime/stat.cpp
    M flang/runtime/stat.h
    M flang/unittests/Runtime/CommandTest.cpp

  Log Message:
  -----------
  [flang] GET_COMMAND_ARGUMENT(ERRMSG) runtime implementation

Implement the final part of GET_COMMAND_ARGUMENT, i.e. the handling of
ERRMSG. This uses some of the infrastructure in stat.h and gets rid of
the magic numbers that we were using for return codes.

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


Compare: https://github.com/llvm/llvm-project/compare/7394d3ba276a...0446f1299f6b


More information about the All-commits mailing list