[flang-commits] [PATCH] D136252: [flang] optionally lower scalar and explicit shape with fir.declare

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Oct 19 05:36:24 PDT 2022


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.

Lower scalar and explicit shape arrays to fir.declare under the -hlfir option.
Update the SymMap so that it can hold fir::FortranVariableInterface.

The plan is to go towards a SymMap that only contains fir::FortranVariableInterface
once current expression lowering can be replaced. This should make the SymMap lighter
than it is today (SymBox/ExtendedValue are above 256 bytes).

Assumed shape, allocatable and pointer are left TODOs for now. Anything with a
specification expression that is not a constant expression will only be able to
be lowered when the HLFIR expression lowering skeleton is added.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136252

Files:
  flang/include/flang/Lower/SymbolMap.h
  flang/include/flang/Optimizer/Builder/FIRBuilder.h
  flang/lib/Lower/ConvertVariable.cpp
  flang/lib/Lower/SymbolMap.cpp
  flang/lib/Optimizer/Builder/FIRBuilder.cpp
  flang/test/Lower/HLFIR/convert-variable.f90
  flang/test/Lower/HLFIR/expr-addr.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136252.468882.patch
Type: text/x-patch
Size: 16672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221019/38444be2/attachment.bin>


More information about the flang-commits mailing list