This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Set DwarfRegNum
ClosedPublic

Authored by arsenm on Jul 29 2015, 11:28 PM.

Details

Reviewers
tstellarAMD
Summary

This requires a fix in tablegen for the cast<int> from bits<16> to work in the list initializer.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 30994.Jul 29 2015, 11:28 PM
arsenm retitled this revision from to AMDGPU/SI: Set DwarfRegNum.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
lib/Target/AMDGPU/SIRegisterInfo.td
13–14

Is it OK for vgprs and sgprs to have the same DwarfRegNum?

arsenm added inline comments.Jul 30 2015, 9:37 AM
lib/Target/AMDGPU/SIRegisterInfo.td
13–14

I assume not. This isn't what's happening though. I originally was setting this from the encoding parameter to SIReg, but this was getting the same value for SGPRs and VGPRs, so I so I renamed it to regIdx and set it from HWEncoding because the VGPRs set HWEncoding{8} separately (although for the special registers regIdx isn't really an accurate name)

tstellarAMD accepted this revision.Jul 30 2015, 5:26 PM
tstellarAMD edited edge metadata.

Ok LGTM.

This revision is now accepted and ready to land.Jul 30 2015, 5:26 PM
arsenm closed this revision.Jul 30 2015, 6:13 PM

r243723