Lines Matching defs:LR
307 // Check if the link register (LR) must be saved.
467 MachineLocation LRSrc(isPPC64 ? PPC::LR8 : PPC::LR);
506 if (Reg == PPC::LR || Reg == PPC::LR8 || Reg == PPC::RM) continue;
570 // Check if the link register (LR) has been saved.
749 /// MustSaveLR - Return true if this function requires that we save the LR
752 static bool MustSaveLR(const MachineFunction &MF, unsigned LR) {
755 // We need a save/restore of LR if there is any def of LR (which is
757 // some use of the LR stack slot (e.g. for builtin_return_address).
758 // (LR comes in 32 and 64 bit versions.)
759 MachineRegisterInfo::def_iterator RI = MF.getRegInfo().def_begin(LR);
768 // Save and clear the LR state.
770 unsigned LR = RegInfo->getRARegister();
771 FI->setMustSaveLR(MustSaveLR(MF, LR));
772 MF.getRegInfo().setPhysRegUnused(LR);