[all-commits] [llvm/llvm-project] 4f5d67: [AArch64] "Support" debug info for SVE types on Wi...

Eli Friedman via All-commits all-commits at lists.llvm.org
Sun Jul 13 16:06:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f5d67b3e414cf5f2c9f7440e97837b718bda4cc
      https://github.com/llvm/llvm-project/commit/4f5d67b3e414cf5f2c9f7440e97837b718bda4cc
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2025-07-13 (Sun, 13 Jul 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetRegisterInfo.h
    M llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
    M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
    M llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
    M llvm/lib/Target/AArch64/AArch64RegisterInfo.h
    A llvm/test/DebugInfo/COFF/AArch64/codeview-sve.ll

  Log Message:
  -----------
  [AArch64] "Support" debug info for SVE types on Windows. (#147865)

There isn't any way to encode a variable in an SVE register, and there
isn't any way to encode a scalable offset, and as far as I know that's
unlikely to change in the near future. So suppress any debug info which
would require those encodings.

This isn't ideal, but we need to ship something which doesn't crash.

Alternatively, for Z registers, we could emit debug info assuming the
vector length is 128 bits, but that seems like it would lead to
unintuitive results.

The change to AArch64FrameLowering is needed to avoid a crash. But we
can't actually test that the returned offset is correct: LiveDebugValues
performs the query, then discards the result.



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