[PATCH] D87500: [DebugInfo] DISubrange support for fortran assumed size array

Alok Kumar Sharma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 02:33:07 PDT 2020


alok created this revision.
alok added reviewers: aprantl, jmorse, dblaikie, SouraVX, jini.susan.george.
alok added a project: debug-info.
Herald added subscribers: llvm-commits, ormris, hiraditya.
Herald added a reviewer: sscalpone.
Herald added a project: LLVM.
alok requested review of this revision.

  Summary:    

This is needed to support assumed size array of fortran which can have missing upperBound/count,
contrary to current DISubrange support.

    Example:
    subroutine sub (array1, array2)
      integer :: array1 (*)
      integer :: array2 (4:9, 10:*)
  
      array1(7:8) = 9
      array2(5, 10) = 10
    end subroutine
    Now the validation check is relaxed for the Fortran.
  
  Testing:

- check-llvm
- check-debuginfo


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87500

Files:
  llvm/lib/IR/Verifier.cpp
  llvm/test/DebugInfo/X86/assumed_size_array.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87500.291164.patch
Type: text/x-patch
Size: 7351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200911/8389c413/attachment-0001.bin>


More information about the llvm-commits mailing list