This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] place scalar in memory in convertToBox/convertToAddress
ClosedPublic

Authored by jeanPerier on Feb 6 2023, 10:16 AM.

Details

Summary

Implement the TODO. Be careful to use and propagate the expression
type to create the temporary since the mlir value may have been computed
with a different value type (e.g., i1 for logical) that should not be
used for in memory values that must have Fortran types.

Co-authored-by: Tom Eccles <tom.eccles@arm.com>

Diff Detail