llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[CodeGen] refactor getDwarfRegNum()

Open chenzheng1030 opened this issue 2 years ago • 1 comments

This is from code review of https://github.com/llvm/llvm-project/pull/95837#discussion_r1643647221

We should use the getDwarfRegNum() defined in MCRegisterInfo.h instead of defining a new one in llvm/lib/CodeGen/StackMaps.cpp

The DwarfRegAlias may not be needed if we implement the getDwarfRegNum() by sharing the DWARF reg numbers among sub/supper registers.

chenzheng1030 avatar Jun 20 '24 01:06 chenzheng1030

@llvm/issue-subscribers-debuginfo

Author: Chen Zheng (chenzheng1030)

This is from code review of https://github.com/llvm/llvm-project/pull/95837#discussion_r1643647221

We should use the getDwarfRegNum() defined in MCRegisterInfo.h instead of defining a new one in llvm/lib/CodeGen/StackMaps.cpp

The DwarfRegAlias may not be needed if we implement the getDwarfRegNum() by sharing the DWARF reg numbers among sub/supper registers.

llvmbot avatar Jun 20 '24 01:06 llvmbot