diff options
author | Abid Qadeer <haqadeer@amd.com> | 2024-08-21 16:57:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 16:57:08 +0100 |
commit | 6fd46089c9fbd5b22bb67ac3d6196fe70ba684c6 (patch) | |
tree | e7bdd67be930818371d509fd6f4334d73e76c8e8 /clang/tools/clang-format/clang-format-diff.py | |
parent | 278fc8efdf004a1959a31bb4c208df5ee733d5c8 (diff) | |
download | llvm-6fd46089c9fbd5b22bb67ac3d6196fe70ba684c6.zip llvm-6fd46089c9fbd5b22bb67ac3d6196fe70ba684c6.tar.gz llvm-6fd46089c9fbd5b22bb67ac3d6196fe70ba684c6.tar.bz2 |
[flang][debug] Allow non default array lower bounds. (#104467)
As mentioned in #98877, we currently always use 1 as lower bound for
fixed size arrays. This PR removes this restriction. It passes along
`DeclareOp` to type conversion functions and uses the shift information
(if present) to get the lower bound value. This was suggested by
@jeanPerier in
https://github.com/llvm/llvm-project/pull/96746#issuecomment-2195164553
This PR also adds a small cleanup that type conversion functions don't
take Location now. It was initially added so that location of derived
types can be passed. But that information can be extracted from typeInfo
objects and we don't need to pass it along.
This PR will handle the problem for local and global variable. We may
need a bit more work for derived type once the support for derived types
lands.
Fixes #98877.
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
0 files changed, 0 insertions, 0 deletions