39 unsigned FIOperandNum,
41 assert(!
"Subroutines not supported yet");
45 assert(!
"Subroutines not supported yet");
50 static const unsigned SubRegs[] = {
51 AMDGPU::sub0, AMDGPU::sub1, AMDGPU::sub2, AMDGPU::sub3, AMDGPU::sub4,
52 AMDGPU::sub5, AMDGPU::sub6, AMDGPU::sub7, AMDGPU::sub8, AMDGPU::sub9,
53 AMDGPU::sub10, AMDGPU::sub11, AMDGPU::sub12, AMDGPU::sub13, AMDGPU::sub14,
58 return SubRegs[Channel];
66 #define GET_REGINFO_TARGET_DESC
67 #include "AMDGPUGenRegisterInfo.inc"
unsigned getIndirectSubReg(unsigned IndirectIndex) const
const uint16_t * getCalleeSavedRegs(const MachineFunction *MF) const
TargetRegisterInfo interface that is implemented by all hw codegen targets.
size_t array_lengthof(T(&)[N])
Find the length of an array.
bundle_iterator< MachineInstr, instr_iterator > iterator
unsigned getSubRegFromChannel(unsigned Channel) const
The AMDGPU TargetMachine interface definition for hw codgen targets.
static const uint16_t CalleeSavedReg
unsigned getFrameRegister(const MachineFunction &MF) const
AMDGPURegisterInfo(TargetMachine &tm)
void eliminateFrameIndex(MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS) const