Displaying 2 results from an estimated 2 matches for "difortransubrange".
2018 Nov 01
4
Fwd: RFC: Adding debug information to LLVM to support Fortran
...-dimensional array, named array, that has indices from 1
to 10 for the rows and 2 to 11 for the columns.
TYPE(t) :: array(10,2:11)
For this declaration, the compiler generates the following LLVM metadata.
!100 = !DIFortranArrayType(baseType: !7, elements: !101)
!101 = !{ !102, !103 }
!102 = !DIFortranSubrange(constLowerBound: 1, constUpperBound: 10)
!103 = !DIFortranSubrange(constLowerBound: 2, constUpperBound: 11)
The DWARF generated for this is as follows. (DWARF asserts in the standard
that arrays are interpreted as column-major.)
DW_TAG_array_type:
DW_AT_name: array...
2018 Nov 01
2
RFC: Adding debug information to LLVM to support Fortran
...aration, the compiler generates the following LLVM metadata.
!100 = !DIFortranArrayType(baseType: !7, elements: !101)
Since the DI* hierarchy really just is the DWARF type hierarchy, I don't think we will need to introduce any fortran-specific names for arrays.
!101 = !{ !102, !103 }
!102 = !DIFortranSubrange(constLowerBound: 1, constUpperBound: 10)
!103 = !DIFortranSubrange(constLowerBound: 2, constUpperBound: 11)
The DWARF generated for this is as follows. (DWARF asserts in the standard that arrays are interpreted as column-major.)
DW_TAG_array_type:
DW_AT_name: array...