[all-commits] [llvm/llvm-project] 9c5d67: [llvm] use 64-bit types for result of getDwarfRegN...

William G Hatch via All-commits all-commits at lists.llvm.org
Fri Sep 20 16:40:28 PDT 2024


  Branch: refs/heads/users/willghatch/width-changes-for-ptx-encoding
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c5d67b2d2eb6e2bcefa91e78e4524e6ad5485ca
      https://github.com/llvm/llvm-project/commit/9c5d67b2d2eb6e2bcefa91e78e4524e6ad5485ca
  Author: William G Hatch <william at hatch.uno>
  Date:   2024-09-20 (Fri, 20 Sep 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCRegisterInfo.h
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
    M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
    M llvm/lib/MC/MCRegisterInfo.cpp
    M llvm/lib/Target/Lanai/LanaiRegisterInfo.h

  Log Message:
  -----------
  [llvm] use 64-bit types for result of getDwarfRegNum (NFC)

The register encoding used by NVPTX and cuda-gdb basically use strings encoded as numbers.  They are always within 64-bits, but typically outside of 32-bits, since they often need at least 5 characters.

This patch changes the signature of MCRegisterInfo::getDwarfRegNum and some related data structures to use 64-bit numbers to accommodate encodings like this.

Additionally, the MCRegisterInfo::getDwarfRegNum is marked as virtual, so that targets with peculiar dwarf register mapping schemes (such as NVPTX) can override its behavior.



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