-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AMDGPU] Implement wave64 DWARF register mapping
Summary: Implement the DWARF register mapping described in llvm/docs/AMDGPUUsage.rst This is currently limited to wave64 VGPRs/AGPRs. This also includes some minor changes in AMDGPUInstPrinter, AMDGPUMCTargetDesc, and AMDGPUAsmParser to make generating CFI assembly text and ELF sections possible to ease testing, although complete CFI support is not yet implemented. Tags: #llvm Differential Revision: https://reviews.llvm.org/D74915
- Loading branch information
Showing
8 changed files
with
81 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
; RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx900 -filetype=asm %s | FileCheck %s | ||
|
||
; Check that we can print symbolic register operands in CFI instructions. | ||
|
||
.text | ||
f: | ||
.cfi_startproc | ||
; CHECK: .cfi_undefined s0 | ||
.cfi_undefined s0 | ||
.cfi_endproc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
; RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx1010 -filetype=obj %s | llvm-dwarfdump -debug-frame - | FileCheck %s | ||
|
||
; Check that we implement the DWARF register mapping. | ||
|
||
.text | ||
f: | ||
.cfi_startproc | ||
; CHECK: CIE | ||
; CHECK: Return address column: 16 | ||
|
||
; CHECK: FDE | ||
; CHECK: DW_CFA_undefined: reg16 | ||
.cfi_undefined pc | ||
; CHECK: DW_CFA_undefined: reg17 | ||
.cfi_undefined exec | ||
|
||
; CHECK: DW_CFA_undefined: reg32 | ||
.cfi_undefined s0 | ||
; CHECK: DW_CFA_undefined: reg95 | ||
.cfi_undefined s63 | ||
|
||
; CHECK: DW_CFA_undefined: reg1088 | ||
.cfi_undefined s64 | ||
; CHECK: DW_CFA_undefined: reg1129 | ||
.cfi_undefined s105 | ||
|
||
; CHECK: DW_CFA_undefined: reg2560 | ||
.cfi_undefined v0 | ||
; CHECK: DW_CFA_undefined: reg2815 | ||
.cfi_undefined v255 | ||
|
||
; CHECK: DW_CFA_undefined: reg3072 | ||
.cfi_undefined a0 | ||
; CHECK: DW_CFA_undefined: reg3327 | ||
.cfi_undefined a255 | ||
|
||
.cfi_endproc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters