[all-commits] [llvm/llvm-project] e5921e: [flang][hlfir] Lower associate construct to HLFIR
jeanPerier via All-commits
all-commits at lists.llvm.org
Mon Feb 27 00:06:36 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e5921ef021efa7e696421069d294d66e58df2541
https://github.com/llvm/llvm-project/commit/e5921ef021efa7e696421069d294d66e58df2541
Author: Jean Perier <jperier at nvidia.com>
Date: 2023-02-27 (Mon, 27 Feb 2023)
Changed paths:
M flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/Mangler.cpp
A flang/test/Lower/HLFIR/associate-construct.f90
Log Message:
-----------
[flang][hlfir] Lower associate construct to HLFIR
- 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.
Differential Revision: https://reviews.llvm.org/D144740
More information about the All-commits
mailing list