[flang-commits] [PATCH] D143421: [flang][hlfir] place scalar in memory in convertToBox/convertToAddress

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Feb 6 10:16:20 PST 2023


jeanPerier created this revision.
jeanPerier added reviewers: clementval, tblah.
jeanPerier added a project: Flang.
Herald added subscribers: bzcheeseman, sunshaoce, mehdi_amini, rriddle, jdoerfert, kristof.beyls.
Herald added a project: All.
jeanPerier requested review of this revision.
Herald added a subscriber: stephenneuendorffer.

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 at arm.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143421

Files:
  flang/include/flang/Lower/ConvertExprToHLFIR.h
  flang/lib/Lower/ConvertCall.cpp
  flang/lib/Lower/ConvertExprToHLFIR.cpp
  flang/test/Lower/HLFIR/expr-box.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143421.495203.patch
Type: text/x-patch
Size: 8378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230206/d8273c11/attachment.bin>


More information about the flang-commits mailing list