[all-commits] [llvm/llvm-project] cc4d28: [flang] Add runtime interface for COMMAND_ARGUMENT...

Diana via All-commits all-commits at lists.llvm.org
Mon Aug 30 00:41:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc4d28691bbc382aabf2a59c017b55a6c37f1b18
      https://github.com/llvm/llvm-project/commit/cc4d28691bbc382aabf2a59c017b55a6c37f1b18
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-08-30 (Mon, 30 Aug 2021)

  Changed paths:
    A flang/runtime/command.h

  Log Message:
  -----------
  [flang] Add runtime interface for COMMAND_ARGUMENT_COUNT

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


  Commit: 4fae60c4b0ed02dbb6e4c73e49197dd8dd8d4ccf
      https://github.com/llvm/llvm-project/commit/4fae60c4b0ed02dbb6e4c73e49197dd8dd8d4ccf
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-08-30 (Mon, 30 Aug 2021)

  Changed paths:
    M flang/runtime/command.h

  Log Message:
  -----------
  [flang] Add runtime interface for GET_COMMAND_ARGUMENT

GET_COMMAND_ARGUMENT takes a lot of optional arguments: VALUE, LENGTH,
STATUS and ERRMSG. This patch breaks up the interface into 2 different
functions:

* One for getting the LENGTH of an argument.

* One for getting the VALUE and the ERRMSG of an argument. This returns
the STATUS, which can be easily ignored by lowering if it is missing in
the invocation.

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


Compare: https://github.com/llvm/llvm-project/compare/abd36fe512a6...4fae60c4b0ed


More information about the All-commits mailing list