[flang-commits] [PATCH] D148627: [flang][hlfir] Apply component lower bounds in hlfir.designate codegen
Jean Perier via Phabricator via flang-commits
flang-commits at lists.llvm.org
Tue Apr 18 05:00:07 PDT 2023
jeanPerier created this revision.
jeanPerier added a reviewer: vzakhari.
jeanPerier added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: jplehr, sstefan1.
The array component indices in the "path" of a fir.slice are zero based
because FIR does not know about the component lower bounds.
When lowering hlfir.designate to FIR for `array%x(i, j)`, convert `i` and
`j` to zero based indices before generating the fir.slice.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148627
Files:
flang/include/flang/Optimizer/Builder/HLFIRTools.h
flang/lib/Optimizer/Builder/HLFIRTools.cpp
flang/lib/Optimizer/HLFIR/Transforms/ConvertToFIR.cpp
flang/test/HLFIR/designate-codegen-component-refs.fir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148627.514608.patch
Type: text/x-patch
Size: 8201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230418/09a51927/attachment-0001.bin>
More information about the flang-commits
mailing list