[all-commits] [llvm/llvm-project] 5434b0: [flang][debug] Add support for fixed size arrays. ...
Abid Qadeer via All-commits
all-commits at lists.llvm.org
Fri May 24 04:56:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5434b04234a86273d719f96e9efa6332a53c0eba
https://github.com/llvm/llvm-project/commit/5434b04234a86273d719f96e9efa6332a53c0eba
Author: Abid Qadeer <haqadeer at amd.com>
Date: 2024-05-24 (Fri, 24 May 2024)
Changed paths:
M flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
M flang/lib/Optimizer/Transforms/DebugTypeGenerator.h
A flang/test/Integration/debug-fixed-array-type-2.f90
A flang/test/Transforms/debug-fixed-array-type.fir
Log Message:
-----------
[flang][debug] Add support for fixed size arrays. (#92568)
This PR adds the type conversion support for fixed size arrays. Mostly
mechanical changes converting dimension values to subrange fields. A
limitation is that lower bound is always one for the moment as that
information is missing in `SequenceType`.
With this change in place, I can evaluate fixed size arrays in debugger.
```
(gdb) p x
$1 = ((2, 3, 4, 5) (3, 4, 5, 6) (4, 5, 6, 7) (5, 6, 7, 8) (6, 7, 8, 9))
(gdb) ptype x
type = integer (4,5)
```
---------
Co-authored-by: Tom Eccles <t at freedommail.info>
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