29 static const unsigned SubRegs[] = {
30 AMDGPU::sub0, AMDGPU::sub1, AMDGPU::sub2, AMDGPU::sub3, AMDGPU::sub4,
31 AMDGPU::sub5, AMDGPU::sub6, AMDGPU::sub7, AMDGPU::sub8, AMDGPU::sub9,
32 AMDGPU::sub10, AMDGPU::sub11, AMDGPU::sub12, AMDGPU::sub13, AMDGPU::sub14,
37 return SubRegs[Channel];
40 #define GET_REGINFO_TARGET_DESC
41 #include "AMDGPUGenRegisterInfo.inc"
50 return CSR_AMDGPU_HighRegs_SaveList;
53 static const MCPhysReg NoCalleeSavedReg = AMDGPU::NoRegister;
54 return &NoCalleeSavedReg;
64 return CSR_AMDGPU_HighRegs_RegMask;
71 return AMDGPU::NoRegister;
const MCPhysReg * getCalleeSavedRegs(const MachineFunction *MF) const override
Interface definition for SIRegisterInfo.
const uint32_t * getCallPreservedMask(const MachineFunction &MF, CallingConv::ID) const override
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
CallingConv::ID getCallingConv() const
getCallingConv()/setCallingConv(CC) - These method get and set the calling convention of this functio...
TargetRegisterInfo interface that is implemented by all hw codegen targets.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
unsigned getFrameRegister(const MachineFunction &MF) const override
unsigned getSubRegFromChannel(unsigned Channel) const
The AMDGPU TargetMachine interface definition for hw codgen targets.
constexpr size_t array_lengthof(T(&)[N])
Find the length of an array.
C - The default llvm calling convention, compatible with C.
Fast - This calling convention attempts to make calls as fast as possible (e.g.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())