This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Fix encoding for FLAT_SCRATCH registers on VI
ClosedPublic

Authored by tstellarAMD on Dec 18 2015, 6:47 PM.

Details

Summary

These register has different encodings on CI and VI, so we add pseudo
FLAT_SCRACTH registers to be used before MC, and subtarget specific
registers to be used by the MC layer.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Fix encoding for FLAT_SCRATCH registers on VI.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Dec 18 2015, 6:58 PM
arsenm edited edge metadata.

LGTM

lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
125–135 ↗(On Diff #43292)

Can these be defined in the header?

This revision is now accepted and ready to land.Dec 18 2015, 6:58 PM
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
125–135 ↗(On Diff #43292)

No, because then you need to move the TableGen generated Subtarget enums into the headers which may cause conflicts with other files that also include them.

This revision was automatically updated to reflect the committed changes.