[all-commits] [llvm/llvm-project] d3bc3a: [flang][codegen] ensure descriptor lower bounds ar...

jeanPerier via All-commits all-commits at lists.llvm.org
Fri Mar 25 01:04:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3bc3a0400414a5c71cc029fa42272d647e3b81b
      https://github.com/llvm/llvm-project/commit/d3bc3a0400414a5c71cc029fa42272d647e3b81b
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2022-03-25 (Fri, 25 Mar 2022)

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

  Log Message:
  -----------
  [flang][codegen] ensure descriptor lower bounds are LBOUND compliant

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.

Differential Revision: https://reviews.llvm.org/D122419




More information about the All-commits mailing list