[flang-commits] [PATCH] D140099: [flang] enable as_expr codegen from array without FortranVariabeInterface

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Dec 15 05:56:52 PST 2022


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

The defining op of HLFIR variables is expected to be visible
in most cases, but HLFIR codegen won't rely on it from a correctness
point of view.

This patch allows building a fir.shape from an hlfir::Entity does not
have a visible FortranVariabeInterface defining op.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140099

Files:
  flang/include/flang/Optimizer/Dialect/FIROps.td
  flang/lib/Optimizer/Builder/HLFIRTools.cpp
  flang/lib/Optimizer/HLFIR/Transforms/BufferizeHLFIR.cpp
  flang/test/HLFIR/as_expr-codegen.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140099.483151.patch
Type: text/x-patch
Size: 10449 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221215/7089cdf6/attachment-0001.bin>


More information about the flang-commits mailing list