This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Added allocatable/pointer support in hlfir::convertToValue.

Authored by vzakhari on Jun 1 2023, 1:29 PM.



The code is used, for example, when passing arguments to IO or intrinsic
calls as value. The allocatable/pointer boxes must be dereferenced,
and trivial values have to be loaded. Character and derived values
have to stay boxed.
I am not sure what to do for the array cases, and I have not seen
any test triggering it, so I leave it as a TODO.

Diff Detail

Event Timeline

vzakhari created this revision.Jun 1 2023, 1:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2023, 1:29 PM
vzakhari requested review of this revision.Jun 1 2023, 1:29 PM
This revision is now accepted and ready to land.Jun 1 2023, 11:01 PM
tblah accepted this revision.Jun 2 2023, 2:14 AM