[all-commits] [llvm/llvm-project] 7df39a: [flang][debug] Support assumed size arrays. (#96316)
Abid Qadeer via All-commits
all-commits at lists.llvm.org
Wed Jul 10 02:24:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7df39ac394c57768abbb254d80fabe7e385c8500
https://github.com/llvm/llvm-project/commit/7df39ac394c57768abbb254d80fabe7e385c8500
Author: Abid Qadeer <haqadeer at amd.com>
Date: 2024-07-10 (Wed, 10 Jul 2024)
Changed paths:
M flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
A flang/test/Integration/debug-assumed-size-array-2.f90
A flang/test/Integration/debug-assumed-size-array.f90
A flang/test/Transforms/debug-assumed-size-array.fir
Log Message:
-----------
[flang][debug] Support assumed size arrays. (#96316)
Here we don't know the size of last dimension and use a null subrange
for that. User will have to provide the dimension when evaluating
variable of this type. The debugging looks like as follows:
subroutine fn(a1, a2)
integer a1(5, *), a2(*)
...
end
(gdb) p a1(1,2)
$2 = 2
(gdb) p a2(3)
$3 = 3
(gdb) ptype a1
type = integer (5,*)
(gdb) ptype a2
type = integer (*)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list