Lines Matching refs:II

421 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const {  in lowerDynamicAlloc()
423 MachineInstr &MI = *II; in lowerDynamicAlloc()
461 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), Reg) in lowerDynamicAlloc()
465 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), Reg) in lowerDynamicAlloc()
469 BuildMI(MBB, II, dl, TII.get(PPC::LD), Reg) in lowerDynamicAlloc()
473 BuildMI(MBB, II, dl, TII.get(PPC::LWZ), Reg) in lowerDynamicAlloc()
490 BuildMI(MBB, II, dl, TII.get(PPC::LI8), NegSizeReg) in lowerDynamicAlloc()
495 BuildMI(MBB, II, dl, TII.get(PPC::AND8), NegSizeReg) in lowerDynamicAlloc()
501 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc()
505 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
515 BuildMI(MBB, II, dl, TII.get(PPC::LI), NegSizeReg) in lowerDynamicAlloc()
520 BuildMI(MBB, II, dl, TII.get(PPC::AND), NegSizeReg) in lowerDynamicAlloc()
526 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc()
530 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
536 MBB.erase(II); in lowerDynamicAlloc()
540 MachineBasicBlock::iterator II) const { in lowerDynamicAreaOffset()
542 MachineInstr &MI = *II; in lowerDynamicAreaOffset()
556 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), in lowerDynamicAreaOffset()
559 MBB.erase(II); in lowerDynamicAreaOffset()
570 void PPCRegisterInfo::lowerCRSpilling(MachineBasicBlock::iterator II, in lowerCRSpilling() argument
573 MachineInstr &MI = *II; // ; SPILL_CR <SrcReg>, <offset> in lowerCRSpilling()
590 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRSpilling()
600 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRSpilling()
607 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRSpilling()
612 MBB.erase(II); in lowerCRSpilling()
615 void PPCRegisterInfo::lowerCRRestore(MachineBasicBlock::iterator II, in lowerCRRestore() argument
618 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CR <offset> in lowerCRRestore()
635 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRRestore()
646 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRRestore()
651 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), DestReg) in lowerCRRestore()
655 MBB.erase(II); in lowerCRRestore()
658 void PPCRegisterInfo::lowerCRBitSpilling(MachineBasicBlock::iterator II, in lowerCRBitSpilling() argument
661 MachineInstr &MI = *II; // ; SPILL_CRBIT <SrcReg>, <offset> in lowerCRBitSpilling()
681 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRBitSpilling()
692 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRBitSpilling()
697 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRBitSpilling()
702 MBB.erase(II); in lowerCRBitSpilling()
705 void PPCRegisterInfo::lowerCRBitRestore(MachineBasicBlock::iterator II, in lowerCRBitRestore() argument
708 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CRBIT <offset> in lowerCRBitRestore()
725 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRBitRestore()
728 BuildMI(MBB, II, dl, TII.get(TargetOpcode::IMPLICIT_DEF), DestReg); in lowerCRBitRestore()
731 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), RegO) in lowerCRBitRestore()
736 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWIMI8 : PPC::RLWIMI), RegO) in lowerCRBitRestore()
743 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), in lowerCRBitRestore()
752 MBB.erase(II); in lowerCRBitRestore()
755 void PPCRegisterInfo::lowerVRSAVESpilling(MachineBasicBlock::iterator II, in lowerVRSAVESpilling() argument
758 MachineInstr &MI = *II; // ; SPILL_VRSAVE <SrcReg>, <offset> in lowerVRSAVESpilling()
770 BuildMI(MBB, II, dl, TII.get(PPC::MFVRSAVEv), Reg) in lowerVRSAVESpilling()
774 BuildMI(MBB, II, dl, TII.get(PPC::STW)).addReg(Reg, RegState::Kill), in lowerVRSAVESpilling()
778 MBB.erase(II); in lowerVRSAVESpilling()
781 void PPCRegisterInfo::lowerVRSAVERestore(MachineBasicBlock::iterator II, in lowerVRSAVERestore() argument
784 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_VRSAVE <offset> in lowerVRSAVERestore()
798 addFrameReference(BuildMI(MBB, II, dl, TII.get(PPC::LWZ), in lowerVRSAVERestore()
801 BuildMI(MBB, II, dl, TII.get(PPC::MTVRSAVEv), DestReg) in lowerVRSAVERestore()
805 MBB.erase(II); in lowerVRSAVERestore()
871 PPCRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, in eliminateFrameIndex() argument
877 MachineInstr &MI = *II; in eliminateFrameIndex()
902 lowerDynamicAreaOffset(II); in eliminateFrameIndex()
909 lowerDynamicAlloc(II); in eliminateFrameIndex()
915 lowerCRSpilling(II, FrameIndex); in eliminateFrameIndex()
918 lowerCRRestore(II, FrameIndex); in eliminateFrameIndex()
921 lowerCRBitSpilling(II, FrameIndex); in eliminateFrameIndex()
924 lowerCRBitRestore(II, FrameIndex); in eliminateFrameIndex()
927 lowerVRSAVESpilling(II, FrameIndex); in eliminateFrameIndex()
930 lowerVRSAVERestore(II, FrameIndex); in eliminateFrameIndex()
986 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), SReg) in eliminateFrameIndex()
989 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LIS8 : PPC::LIS), SRegHi) in eliminateFrameIndex()
991 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::ORI8 : PPC::ORI), SReg) in eliminateFrameIndex()