This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix PC register mapping in wave32 mode
ClosedPublic

Authored by scott.linder on Mar 24 2020, 2:38 PM.

Details

Summary

The PC_32 DWARF register is for a 32-bit process address space which we
don't implement in AMDGCN; another way of putting this is that the size
of the PC register is not a function of the wavefront size. If we ever
implement a 32-bit process address space we will need to add two more
DwarfFlavours i.e. we will need to represent the product of (wave32,
wave64) x (64-bit address space, 32-bit address space).

Diff Detail

Event Timeline

scott.linder created this revision.Mar 24 2020, 2:38 PM

Sorry for missing this in the initial review, I caught it as I was rebasing my CFI changes and adding tests for wave32.

RamNalamothu accepted this revision.Mar 26 2020, 12:30 AM

Sorry for missing this in the initial review, I caught it as I was rebasing my CFI changes and adding tests for wave32.

Ah, it's my mistake and oversight. Thanks for catching and fixing it.

This revision is now accepted and ready to land.Mar 26 2020, 12:30 AM
This revision was automatically updated to reflect the committed changes.