[flang][hlfir] intrinsic dynamically optional arguments
authorTom Eccles <tom.eccles@arm.com>
Thu, 29 Jun 2023 17:26:35 +0000 (17:26 +0000)
committerTom Eccles <tom.eccles@arm.com>
Tue, 4 Jul 2023 09:34:43 +0000 (09:34 +0000)
commit1b74fadd9e2eb5ec7ff98996a91f652fa50f47e4
tree9255465ec94f4e9b6328f25c4e80dd17654d3878
parentbe4518f230092b81f2690e860d028df4573d1148
[flang][hlfir] intrinsic dynamically optional arguments

This adds support for dynamically optional arguments for intrinsics
which do not have their own hlfir operations.

The functions for processing these arguments are mostly the same as the
equivalent functions in ConvertExpr.cpp. I chose not to share
implementations so that HLFIR helpers can be used here. Presumably
ConvertExpr.cpp will go away one day.

Depends on D154236

Differential Revision: https://reviews.llvm.org/D154237
flang/lib/Lower/ConvertCall.cpp
flang/test/Lower/HLFIR/intrinsic-dynamically-optional.f90 [new file with mode: 0644]