[flang-commits] [PATCH] D143481: [flang][hlfir] Emit hlfir.declare inside internal procedures

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Feb 7 02:07:00 PST 2023


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

Captured variables inside internal procedure do not go though
Fortran::lower::instantiateVar because the specification expressions
should no be lowered again, and instead, all the information must be
taken from the host link argument.

There is nothing very special to do for HLFIR, but the hlfir.declare
should be emitted for the instantiated captured variable and mapped
to the symbol.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143481

Files:
  flang/lib/Lower/HostAssociations.cpp
  flang/test/Lower/HLFIR/internal-procedures.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143481.495435.patch
Type: text/x-patch
Size: 8148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230207/9058044e/attachment-0001.bin>


More information about the flang-commits mailing list