Lines Matching refs:CSRegs
504 static bool isCalleeSavedRegister(unsigned Reg, const MCPhysReg *CSRegs) { in isCalleeSavedRegister() argument
505 for (unsigned i = 0; CSRegs[i]; ++i) in isCalleeSavedRegister()
506 if (Reg == CSRegs[i]) in isCalleeSavedRegister()
511 static bool isCSRestore(MachineInstr *MI, const MCPhysReg *CSRegs) { in isCSRestore() argument
520 if (!isCalleeSavedRegister(MI->getOperand(RtIdx).getReg(), CSRegs) || in isCSRestore()
521 !isCalleeSavedRegister(MI->getOperand(RtIdx + 1).getReg(), CSRegs) || in isCSRestore()
599 const MCPhysReg *CSRegs = RegInfo->getCalleeSavedRegs(&MF); in emitEpilogue() local
604 } while (LastPopI != MBB.begin() && isCSRestore(LastPopI, CSRegs)); in emitEpilogue()
605 if (!isCSRestore(LastPopI, CSRegs)) { in emitEpilogue()
900 const MCPhysReg *CSRegs = RegInfo->getCalleeSavedRegs(&MF); in processFunctionBeforeCalleeSavedScan() local
903 for (unsigned i = 0; CSRegs[i]; i += 2) { in processFunctionBeforeCalleeSavedScan()
904 assert(CSRegs[i + 1] && "Odd number of callee-saved registers!"); in processFunctionBeforeCalleeSavedScan()
906 const unsigned OddReg = CSRegs[i]; in processFunctionBeforeCalleeSavedScan()
907 const unsigned EvenReg = CSRegs[i + 1]; in processFunctionBeforeCalleeSavedScan()