Lines Matching refs:MI

258 static void RemoveVRSaveCode(MachineInstr *MI) {
259 MachineBasicBlock *Entry = MI->getParent();
262 // We know that the MTVRSAVE instruction immediately follows MI. Remove it.
263 MachineBasicBlock::iterator MBBI = MI;
290 MBBI = MI;
298 MI->eraseFromParent();
301 // HandleVRSaveUpdate - MI is the UPDATE_VRSAVE instruction introduced by the
304 static void HandleVRSaveUpdate(MachineInstr *MI, const TargetInstrInfo &TII) {
305 MachineFunction *MF = MI->getParent()->getParent();
307 DebugLoc dl = MI->getDebugLoc();
344 RemoveVRSaveCode(MI);
348 unsigned SrcReg = MI->getOperand(1).getReg();
349 unsigned DstReg = MI->getOperand(0).getReg();
353 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORI), DstReg)
357 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORI), DstReg)
362 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORIS), DstReg)
366 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORIS), DstReg)
371 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORIS), DstReg)
375 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORIS), DstReg)
379 BuildMI(*MI->getParent(), MI, dl, TII.get(PPC::ORI), DstReg)
385 MI->eraseFromParent();
1672 MachineBasicBlock::iterator MI,
1722 MBB.insert(MI, CRMIB);
1723 MBB.insert(MI, addFrameReference(BuildMI(*MF, DL, TII.get(PPC::STW))
1730 TII.storeRegToStackSlot(MBB, MI, Reg, true,
1740 MachineBasicBlock &MBB, MachineBasicBlock::iterator MI,
1753 MBB.insert(MI, addFrameReference(BuildMI(*MF, DL, TII.get(PPC::LWZ),
1761 MBB.insert(MI, BuildMI(*MF, DL, TII.get(RestoreOp), PPC::CR2)
1765 MBB.insert(MI, BuildMI(*MF, DL, TII.get(RestoreOp), PPC::CR3)
1769 MBB.insert(MI, BuildMI(*MF, DL, TII.get(RestoreOp), PPC::CR4)
1789 MachineInstr *MI = I;
1790 DebugLoc dl = MI->getDebugLoc();
1815 MachineBasicBlock::iterator MI,
1834 MachineBasicBlock::iterator I = MI, BeforeI = I;