diff options
author | Abid Qadeer <haqadeer@amd.com> | 2024-06-25 10:00:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 10:00:45 +0100 |
commit | 919b1ecafc010379eff88368b050068223a01f99 (patch) | |
tree | 0e07a974f851d0d7997847d6416a06dc87b06c41 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 0bd9c49a295829ed44e838c4d54cc905662a1afa (diff) | |
download | llvm-919b1ecafc010379eff88368b050068223a01f99.zip llvm-919b1ecafc010379eff88368b050068223a01f99.tar.gz llvm-919b1ecafc010379eff88368b050068223a01f99.tar.bz2 |
[flang][debug] Support pointer type. (#96153)
The handling of `PointerType` is similar to `HeapType`. The only
difference is that allocated flag is generated for `HeapType` and
associated flag for `PointerType`. The tests for pointer to allocatable
strings are disabled for now. I will enable them once #95906 is merged.
The debugging in GDB looks like this:
integer, pointer :: par2(:)
integer, target, allocatable :: ar2(:)
integer, target :: sc
integer, pointer :: psc
allocate(ar2(4))
par2 => ar2
psc => sc
19 par2 => ar2
(gdb) p par2
$3 = <not associated>
(gdb) n
20 do i=1,5
(gdb) p par2
$4 = (0, 0, 0, 0)
(gdb) ptype par2
type = integer (4)
(gdb) p sc
$5 = 3
(gdb) p psc
$6 = (PTR TO -> ( integer )) 0x7fffffffda24
(gdb) p *psc
$7 = 3
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions