[all-commits] [llvm/llvm-project] 48b5a0: [flang] Single entry point for GET_ENVIRONMENT_VAR...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Tue Jan 31 08:32:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 48b5a06dfcab12cf093a1a3df42cb5b684e2be4c
      https://github.com/llvm/llvm-project/commit/48b5a06dfcab12cf093a1a3df42cb5b684e2be4c
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2023-01-31 (Tue, 31 Jan 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/Runtime/Command.h
    M flang/include/flang/Runtime/command.h
    M flang/lib/Lower/IntrinsicCall.cpp
    M flang/lib/Optimizer/Builder/Runtime/Command.cpp
    M flang/runtime/command.cpp
    M flang/test/Lower/Intrinsics/get_environment_variable-optional.f90
    M flang/test/Lower/Intrinsics/get_environment_variable.f90
    M flang/test/Runtime/no-cpp-dep.c
    M flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp
    M flang/unittests/Runtime/CommandTest.cpp

  Log Message:
  -----------
  [flang] Single entry point for GET_ENVIRONMENT_VARIABLE

This patch refactors the runtime support for GET_ENVIRONMENT_VARIABLE
to have a single entry point instead of 2. It also updates lowering
accordingly.

This makes it easier to handle dynamically optional arguments.
See also https://reviews.llvm.org/D118777

Reviewed By: jeanPerier

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




More information about the All-commits mailing list