Lines Matching defs:LR
339 // Check if the link register (LR) must be saved.
499 MachineLocation LRSrc(isPPC64 ? PPC::LR8 : PPC::LR);
538 if (Reg == PPC::LR || Reg == PPC::LR8 || Reg == PPC::RM) continue;
602 // Check if the link register (LR) has been saved.
781 /// MustSaveLR - Return true if this function requires that we save the LR
784 static bool MustSaveLR(const MachineFunction &MF, unsigned LR) {
787 // We need a save/restore of LR if there is any def of LR (which is
789 // some use of the LR stack slot (e.g. for builtin_return_address).
790 // (LR comes in 32 and 64 bit versions.)
791 MachineRegisterInfo::def_iterator RI = MF.getRegInfo().def_begin(LR);
800 // Save and clear the LR state.
802 unsigned LR = RegInfo->getRARegister();
803 FI->setMustSaveLR(MustSaveLR(MF, LR));
805 MRI.setPhysRegUnused(LR);