[flang-commits] [PATCH] D141470: [flang] Lower component-ref to hlfir.designate

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jan 11 01:50:23 PST 2023


jeanPerier created this revision.
jeanPerier added reviewers: PeteSteinfeld, clementval, vdonaldson.
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: jdoerfert.
Herald added a subscriber: sstefan1.

Implement the visit of component refs in DesignatorBuilder.
The ArrayRef code has to be updated a bit to cope with the
case where the base is an array and the component is also an
array.

Improve the result type of array sections designators (only return
a fir.box if the array section is not contiguous/has dynamic extent).
This required exposing IsContiguous entry point for different
front-end designator nodes (the implementation already existed,
but was internal to check-expression.cpp).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141470

Files:
  flang/include/flang/Evaluate/check-expression.h
  flang/include/flang/Optimizer/Builder/HLFIRTools.h
  flang/lib/Evaluate/check-expression.cpp
  flang/lib/Lower/ConvertExprToHLFIR.cpp
  flang/lib/Lower/ConvertType.cpp
  flang/lib/Optimizer/Builder/HLFIRTools.cpp
  flang/test/Lower/HLFIR/designators-component-ref.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141470.488115.patch
Type: text/x-patch
Size: 45933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230111/f1f040ee/attachment-0001.bin>


More information about the flang-commits mailing list