[flang-commits] [PATCH] D141276: [flang] Lower addresses inside global initializers in HLFIR

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jan 9 05:19:00 PST 2023


jeanPerier created this revision.
jeanPerier added reviewers: clementval, PeteSteinfeld.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
jeanPerier requested review of this revision.

Move the code to lower an expression to address or a box in HLFIR from
Bridge.cpp to ConvertExpr.cpp so that it can be used inside
ConvertVariable.cpp (that needs to use a different symbol map that the
one held in the bridge).

Lower NULL to hlfir.null.

This allows lowering derived type constant structure constructors with
pointer components into fir.global.

Depends on D141136 <https://reviews.llvm.org/D141136>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141276

Files:
  flang/include/flang/Lower/ConvertExprToHLFIR.h
  flang/include/flang/Lower/StatementContext.h
  flang/lib/Lower/Bridge.cpp
  flang/lib/Lower/ConvertExprToHLFIR.cpp
  flang/lib/Lower/ConvertVariable.cpp
  flang/test/Lower/HLFIR/constant-derived.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141276.487391.patch
Type: text/x-patch
Size: 15890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230109/680eb036/attachment.bin>


More information about the flang-commits mailing list