[PATCH] D118984: [flang] Upstream partial lowering of GET_ENVIRONMENT_VARIABLE intrinsic

Josh Mottley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 4 03:24:30 PST 2022


josh.mottley.arm created this revision.
Herald added a subscriber: mehdi_amini.
Herald added a project: Flang.
josh.mottley.arm requested review of this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.

This patch adds partial lowering of the "GET_ENVIRONMENT_VARIABLE" intrinsic
to the backend runtime hook implemented in patches D111394 <https://reviews.llvm.org/D111394> and D112698 <https://reviews.llvm.org/D112698>.
It also renames the `isPresent` lambda to `isAbsent` and moves it out to
its own function in `Command.cpp`. Corresponding comment fixes for this
are also modified. Lastly it adds the i1 type to
`RuntimeCallTestBash.h`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118984

Files:
  flang/include/flang/Optimizer/Builder/Runtime/Command.h
  flang/lib/Optimizer/Builder/Runtime/Command.cpp
  flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp
  flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118984.405912.patch
Type: text/x-patch
Size: 8812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/7309be78/attachment.bin>


More information about the llvm-commits mailing list