Differential Revision: https://reviews.llvm.org/D64885
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366376
91177308-0d34-0410-b5e6-
96231b3b80d8
}
StringRef SIRegisterInfo::getRegAsmName(unsigned Reg) const {
- // FIXME: Rename flat_scr so we don't need to special case this.
- switch (Reg) {
- case AMDGPU::FLAT_SCR:
- return "flat_scratch";
- case AMDGPU::FLAT_SCR_LO:
- return "flat_scratch_lo";
- case AMDGPU::FLAT_SCR_HI:
- return "flat_scratch_hi";
- default:
- break;
- }
-
const TargetRegisterClass *RC = getMinimalPhysRegClass(Reg);
unsigned Size = getRegSizeInBits(*RC);
unsigned AltName = AMDGPU::NoRegAltName;
multiclass FLAT_SCR_LOHI_m <string n, bits<16> ci_e, bits<16> vi_e> {
def _ci : SIReg<n, ci_e>;
def _vi : SIReg<n, vi_e>;
- def "" : SIReg<"", 0>;
+ def "" : SIReg<n, 0>;
}
class FlatReg <Register lo, Register hi, bits<16> encoding> :