Lines Matching refs:II
631 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const { in lowerDynamicAlloc()
633 MachineInstr &MI = *II; in lowerDynamicAlloc()
660 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, Reg); in lowerDynamicAlloc()
664 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc()
668 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
672 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc()
676 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
682 MBB.erase(II); in lowerDynamicAlloc()
688 void PPCRegisterInfo::prepareDynamicAlloca(MachineBasicBlock::iterator II, in prepareDynamicAlloca() argument
693 MachineInstr &MI = *II; in prepareDynamicAlloca()
725 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), FramePointer) in prepareDynamicAlloca()
729 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), FramePointer) in prepareDynamicAlloca()
733 BuildMI(MBB, II, dl, TII.get(PPC::LD), FramePointer) in prepareDynamicAlloca()
737 BuildMI(MBB, II, dl, TII.get(PPC::LWZ), FramePointer) in prepareDynamicAlloca()
749 BuildMI(MBB, II, dl, TII.get(PPC::LI8), NegSizeReg) in prepareDynamicAlloca()
754 BuildMI(MBB, II, dl, TII.get(PPC::AND8), NegSizeReg) in prepareDynamicAlloca()
766 BuildMI(MBB, II, dl, TII.get(PPC::LI), NegSizeReg) in prepareDynamicAlloca()
771 BuildMI(MBB, II, dl, TII.get(PPC::AND), NegSizeReg) in prepareDynamicAlloca()
780 MachineBasicBlock::iterator II) const { in lowerPrepareProbedAlloca()
781 MachineInstr &MI = *II; in lowerPrepareProbedAlloca()
804 BuildMI(MBB, II, dl, CopyInst, ActualNegSizeReg) in lowerPrepareProbedAlloca()
810 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, FramePointer); in lowerPrepareProbedAlloca()
814 BuildMI(MBB, II, dl, CopyInst, ActualNegSizeReg) in lowerPrepareProbedAlloca()
817 MBB.erase(II); in lowerPrepareProbedAlloca()
821 MachineBasicBlock::iterator II) const { in lowerDynamicAreaOffset()
823 MachineInstr &MI = *II; in lowerDynamicAreaOffset()
837 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), in lowerDynamicAreaOffset()
840 MBB.erase(II); in lowerDynamicAreaOffset()
851 void PPCRegisterInfo::lowerCRSpilling(MachineBasicBlock::iterator II, in lowerCRSpilling() argument
854 MachineInstr &MI = *II; // ; SPILL_CR <SrcReg>, <offset> in lowerCRSpilling()
871 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRSpilling()
881 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRSpilling()
888 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRSpilling()
893 MBB.erase(II); in lowerCRSpilling()
896 void PPCRegisterInfo::lowerCRRestore(MachineBasicBlock::iterator II, in lowerCRRestore() argument
899 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CR <offset> in lowerCRRestore()
916 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRRestore()
927 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRRestore()
932 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), DestReg) in lowerCRRestore()
936 MBB.erase(II); in lowerCRRestore()
939 void PPCRegisterInfo::lowerCRBitSpilling(MachineBasicBlock::iterator II, in lowerCRBitSpilling() argument
942 MachineInstr &MI = *II; // ; SPILL_CRBIT <SrcReg>, <offset> in lowerCRBitSpilling()
989 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LI8 : PPC::LI), Reg) in lowerCRBitSpilling()
994 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LIS8 : PPC::LIS), Reg) in lowerCRBitSpilling()
1004 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::SETNBC8 : PPC::SETNBC), Reg) in lowerCRBitSpilling()
1018 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::SETB8 : PPC::SETB), Reg) in lowerCRBitSpilling()
1029 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRBitSpilling()
1040 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRBitSpilling()
1045 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRBitSpilling()
1051 MBB.erase(II); in lowerCRBitSpilling()
1058 void PPCRegisterInfo::lowerCRBitRestore(MachineBasicBlock::iterator II, in lowerCRBitRestore() argument
1061 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CRBIT <offset> in lowerCRBitRestore()
1078 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRBitRestore()
1081 BuildMI(MBB, II, dl, TII.get(TargetOpcode::IMPLICIT_DEF), DestReg); in lowerCRBitRestore()
1084 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), RegO) in lowerCRBitRestore()
1089 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWIMI8 : PPC::RLWIMI), RegO) in lowerCRBitRestore()
1096 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), in lowerCRBitRestore()
1105 MBB.erase(II); in lowerCRBitRestore()
1140 void PPCRegisterInfo::lowerACCSpilling(MachineBasicBlock::iterator II, in lowerACCSpilling() argument
1142 MachineInstr &MI = *II; // SPILL_ACC <SrcReg>, <offset> in lowerACCSpilling()
1163 BuildMI(MBB, II, DL, TII.get(PPC::XXMFACC), SrcReg).addReg(SrcReg); in lowerACCSpilling()
1164 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerACCSpilling()
1167 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerACCSpilling()
1171 BuildMI(MBB, II, DL, TII.get(PPC::XXMTACC), SrcReg).addReg(SrcReg); in lowerACCSpilling()
1174 MBB.erase(II); in lowerACCSpilling()
1178 void PPCRegisterInfo::lowerACCRestore(MachineBasicBlock::iterator II, in lowerACCRestore() argument
1180 MachineInstr &MI = *II; // <DestReg> = RESTORE_ACC <offset> in lowerACCRestore()
1200 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), Reg), in lowerACCRestore()
1202 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), Reg + 1), in lowerACCRestore()
1205 BuildMI(MBB, II, DL, TII.get(PPC::XXMTACC), DestReg).addReg(DestReg); in lowerACCRestore()
1208 MBB.erase(II); in lowerACCRestore()
1212 void PPCRegisterInfo::lowerQuadwordSpilling(MachineBasicBlock::iterator II, in lowerQuadwordSpilling() argument
1214 MachineInstr &MI = *II; in lowerQuadwordSpilling()
1227 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STD)) in lowerQuadwordSpilling()
1230 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STD)) in lowerQuadwordSpilling()
1235 MBB.erase(II); in lowerQuadwordSpilling()
1239 void PPCRegisterInfo::lowerQuadwordRestore(MachineBasicBlock::iterator II, in lowerQuadwordRestore() argument
1241 MachineInstr &MI = *II; in lowerQuadwordRestore()
1255 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LD), Reg), FrameIndex, in lowerQuadwordRestore()
1257 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LD), Reg + 1), FrameIndex, in lowerQuadwordRestore()
1261 MBB.erase(II); in lowerQuadwordRestore()
1335 PPCRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, in eliminateFrameIndex() argument
1341 MachineInstr &MI = *II; in eliminateFrameIndex()
1366 lowerDynamicAreaOffset(II); in eliminateFrameIndex()
1373 lowerDynamicAlloc(II); in eliminateFrameIndex()
1382 lowerPrepareProbedAlloca(II); in eliminateFrameIndex()
1388 lowerCRSpilling(II, FrameIndex); in eliminateFrameIndex()
1391 lowerCRRestore(II, FrameIndex); in eliminateFrameIndex()
1394 lowerCRBitSpilling(II, FrameIndex); in eliminateFrameIndex()
1397 lowerCRBitRestore(II, FrameIndex); in eliminateFrameIndex()
1400 lowerACCSpilling(II, FrameIndex); in eliminateFrameIndex()
1403 lowerACCRestore(II, FrameIndex); in eliminateFrameIndex()
1406 lowerQuadwordSpilling(II, FrameIndex); in eliminateFrameIndex()
1409 lowerQuadwordRestore(II, FrameIndex); in eliminateFrameIndex()
1482 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), SReg) in eliminateFrameIndex()
1485 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LIS8 : PPC::LIS), SRegHi) in eliminateFrameIndex()
1487 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::ORI8 : PPC::ORI), SReg) in eliminateFrameIndex()