[flang-commits] [PATCH] D144740: [flang][hlfir] Lower associate construct to HLFIR
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Fri Feb 24 08:37:56 PST 2023
jeanPerier created this revision.
jeanPerier added reviewers: clementval, PeteSteinfeld.
jeanPerier added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.
- always use genExprAddr when lowering to HLFIR: it does not create temporary for array sections without vector subscripts, so there is no need to have custom logic.
- update mangling to deal with AssocDetailsEntity. Their name is required in HLFIR so that it can be added to the hlfir.declare that is created for the selector once it is lowered. This should allow getting debug info for selector when debug info are generated from hlfir.declare.
The rest of associate construct lowering is unchanged and shared with
the current lowering.
This patch also enables select type lowering to work properly, but some
other todos (mainly about parent component references) prevents porting
the tests for now, so this will be done later.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144740
Files:
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/Mangler.cpp
flang/test/Lower/HLFIR/associate-construct.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144740.500223.patch
Type: text/x-patch
Size: 9480 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230224/5e7ac7bb/attachment-0001.bin>
More information about the flang-commits
mailing list