static bool isVGPR(const MachineOperand *MO, const SIRegisterInfo &TRI, const MachineRegisterInfo &MRI) { if (!MO->isReg()) return false; if (TargetRegisterInfo::isVirtualRegister(MO->getReg())) return TRI.hasVGPRs(MRI.getRegClass(MO->getReg())); return TRI.hasVGPRs(TRI.getPhysRegClass(MO->getReg())); }
static bool isSGPRToVGPRCopy(const TargetRegisterClass *SrcRC, const TargetRegisterClass *DstRC, const SIRegisterInfo &TRI) { return TRI.isSGPRClass(SrcRC) && TRI.hasVGPRs(DstRC); }
bool SIFixSGPRCopies::isSGPRToVGPRCopy(const TargetRegisterClass *SrcRC, const TargetRegisterClass *DstRC, const SIRegisterInfo &TRI) const { return TRI.isSGPRClass(SrcRC) && TRI.hasVGPRs(DstRC); }