[flang-commits] [PATCH] D142489: [flang] Single entry point for GET_ENVIRONMENT_VARIABLE

Leandro Lupori via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Jan 24 09:59:04 PST 2023


luporl created this revision.
Herald added subscribers: sunshaoce, mehdi_amini.
Herald added projects: Flang, All.
luporl added reviewers: jeanPerier, klausler, rovka.
luporl added a subscriber: flang-commits.
Herald added a subscriber: jdoerfert.
luporl published this revision for review.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142489

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142489.491838.patch
Type: text/x-patch
Size: 41643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230124/74ea2fb3/attachment-0001.bin>


More information about the flang-commits mailing list