[flang-commits] [PATCH] D122419: [flang][codegen] ensure descriptor lower bounds are LBOUND compliant

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Mar 24 10:28:11 PDT 2022


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

Follow-up of https://reviews.llvm.org/D121488 to ensure all descriptors
created inline complies with LBOUND requirement that the lower bound is
`1` when the related dimension extent is zero.

Both fir.xrebox and fir.xembox codegen is updated to enforce this
constraint.

Also upstream the "normalized lower bound" attribute that was added in fir-dev
since embox codegen was upstreamed, it is conflicting with this patch
otherwise.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122419

Files:
  flang/include/flang/Optimizer/Dialect/FIROps.h
  flang/lib/Optimizer/CodeGen/CodeGen.cpp
  flang/test/Fir/convert-to-llvm.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122419.417980.patch
Type: text/x-patch
Size: 11568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220324/666b619c/attachment-0001.bin>


More information about the flang-commits mailing list