diff options
author | Abid Qadeer <haqadeer@amd.com> | 2024-06-17 14:09:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 14:09:26 +0100 |
commit | 0432221c8e6a8e5740a982076a6ae85e5ee9909e (patch) | |
tree | ced692ffcd2eeb153f01b35898149f850381edb5 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 457e8954798b707c73ec76e0819760aaf65d0ffb (diff) | |
download | llvm-0432221c8e6a8e5740a982076a6ae85e5ee9909e.zip llvm-0432221c8e6a8e5740a982076a6ae85e5ee9909e.tar.gz llvm-0432221c8e6a8e5740a982076a6ae85e5ee9909e.tar.bz2 |
[flang][debug] Support allocatables. (#95557)
This PR adds debug support for allocatable. The allocatable arrays use
the existing functionality to read the array information from
descriptor. The allocatable for the scalar shows up as pointer to the
scalar.
While testing this, I notices that values of allocated and associated
flags were swapped. This is also fixed in this PR.
Here is how the debugging of the allocatable looks like with this patch
in place.
integer, allocatable :: ar1(:, :)
real, allocatable :: sc
allocate(sc)
allocate(ar1(3, 4))
(gdb) ptype ar1
type = integer, allocatable (3,4)
(gdb) p ar1
$1 = ((5, 6, 7) (9, 10, 11) (13, 14, 15) (17, 18, 19)) (gdb) p sc
$2 = (PTR TO -> ( real )) 0x205300
(gdb) p *sc
$3 = 3.1400001
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions