This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Move register related queries to subtarget class
ClosedPublic

Authored by kzhuravl on Jan 30 2017, 11:50 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Jan 30 2017, 11:50 PM
kzhuravl updated this revision to Diff 87399.Feb 7 2017, 5:03 AM

Bring up to date with trunk.

arsenm added inline comments.Feb 7 2017, 11:31 AM
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
510 ↗(On Diff #87399)

Assign to variable and add that here? Should probably reorder this with the STM.debuggerEmitPrologue() part to keep all the register computations together

lib/Target/AMDGPU/AMDGPUSubtarget.cpp
472–474 ↗(On Diff #87399)

If you aren't planning on adding more you can do a return ternary operator in the header

kzhuravl updated this revision to Diff 87506.Feb 7 2017, 1:14 PM
kzhuravl marked 2 inline comments as done.

Address review feedback.

arsenm accepted this revision.Feb 7 2017, 1:17 PM

LGTM

lib/Target/AMDGPU/SIRegisterInfo.cpp
146 ↗(On Diff #87506)

Indentation looks wrong

This revision is now accepted and ready to land.Feb 7 2017, 1:17 PM
This revision was automatically updated to reflect the committed changes.
kzhuravl marked an inline comment as done.