[all-commits] [llvm/llvm-project] b3ef15: [RISCV] Fix generation of DWARF info for vector se...

Kirill Radkin via All-commits all-commits at lists.llvm.org
Thu May 8 03:29:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3ef15aa00c94aa937cb40cd7f9483140c62514d
      https://github.com/llvm/llvm-project/commit/b3ef15aa00c94aa937cb40cd7f9483140c62514d
  Author: Kirill Radkin <116365474+kr-sc at users.noreply.github.com>
  Date:   2025-05-08 (Thu, 08 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/CodeGen/RISCV/riscv-v-debuginfo.c

  Log Message:
  -----------
  [RISCV] Fix generation of DWARF info for vector segmented types (#137941)

In DWARF info RISC-V Vector types are presented as DW_TAG_array_type
with tags DW_AT_type (what elements does this array consist of) and
DW_TAG_subrange_type. DW_TAG_subrange_type have DW_AT_upper_bound tag
which contain upper bound value for this array.

For now, it's generate same DWARF info about length of segmented types
and their corresponding non-tuple types.

For example, vint32m4x2_t and vint32m4_t have DW_TAG_array_type with
same DW_AT_type and DW_TAG_subrange_type, it means that this types have
same length, which is not correct
(vint32m4x2_t length is twice as big as vint32m4_t)



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