[all-commits] [llvm/llvm-project] 159abe: [DebugInfo][flang] DISubrange support for fortran ...

Alok Kumar Sharma via All-commits all-commits at lists.llvm.org
Wed Sep 16 01:46:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 159abe09d25b19c24bf23ce50757987c0f25abe4
      https://github.com/llvm/llvm-project/commit/159abe09d25b19c24bf23ce50757987c0f25abe4
  Author: Alok Kumar Sharma <AlokKumar.Sharma at amd.com>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/Dwarf.h
    M llvm/lib/IR/Verifier.cpp
    A llvm/test/DebugInfo/X86/assumed_size_array.ll

  Log Message:
  -----------
  [DebugInfo][flang] DISubrange support for fortran assumed size array

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 fortran.

Reviewed By: aprantl

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




More information about the All-commits mailing list