Lines Matching refs:II

734 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const {  in lowerDynamicAlloc()
736 MachineInstr &MI = *II; in lowerDynamicAlloc()
763 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, Reg); in lowerDynamicAlloc()
767 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc()
771 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
775 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc()
779 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
785 MBB.erase(II); in lowerDynamicAlloc()
791 void PPCRegisterInfo::prepareDynamicAlloca(MachineBasicBlock::iterator II, in prepareDynamicAlloca() argument
796 MachineInstr &MI = *II; in prepareDynamicAlloca()
828 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), FramePointer) in prepareDynamicAlloca()
832 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), FramePointer) in prepareDynamicAlloca()
836 BuildMI(MBB, II, dl, TII.get(PPC::LD), FramePointer) in prepareDynamicAlloca()
840 BuildMI(MBB, II, dl, TII.get(PPC::LWZ), FramePointer) in prepareDynamicAlloca()
852 BuildMI(MBB, II, dl, TII.get(PPC::LI8), NegSizeReg) in prepareDynamicAlloca()
857 BuildMI(MBB, II, dl, TII.get(PPC::AND8), NegSizeReg) in prepareDynamicAlloca()
869 BuildMI(MBB, II, dl, TII.get(PPC::LI), NegSizeReg) in prepareDynamicAlloca()
874 BuildMI(MBB, II, dl, TII.get(PPC::AND), NegSizeReg) in prepareDynamicAlloca()
883 MachineBasicBlock::iterator II) const { in lowerPrepareProbedAlloca()
884 MachineInstr &MI = *II; in lowerPrepareProbedAlloca()
907 BuildMI(MBB, II, dl, CopyInst, ActualNegSizeReg) in lowerPrepareProbedAlloca()
913 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, FramePointer); in lowerPrepareProbedAlloca()
917 BuildMI(MBB, II, dl, CopyInst, ActualNegSizeReg) in lowerPrepareProbedAlloca()
920 MBB.erase(II); in lowerPrepareProbedAlloca()
924 MachineBasicBlock::iterator II) const { in lowerDynamicAreaOffset()
926 MachineInstr &MI = *II; in lowerDynamicAreaOffset()
940 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), in lowerDynamicAreaOffset()
943 MBB.erase(II); in lowerDynamicAreaOffset()
954 void PPCRegisterInfo::lowerCRSpilling(MachineBasicBlock::iterator II, in lowerCRSpilling() argument
957 MachineInstr &MI = *II; // ; SPILL_CR <SrcReg>, <offset> in lowerCRSpilling()
974 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRSpilling()
984 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRSpilling()
991 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRSpilling()
996 MBB.erase(II); in lowerCRSpilling()
999 void PPCRegisterInfo::lowerCRRestore(MachineBasicBlock::iterator II, in lowerCRRestore() argument
1002 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CR <offset> in lowerCRRestore()
1019 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRRestore()
1030 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRRestore()
1035 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), DestReg) in lowerCRRestore()
1039 MBB.erase(II); in lowerCRRestore()
1042 void PPCRegisterInfo::lowerCRBitSpilling(MachineBasicBlock::iterator II, in lowerCRBitSpilling() argument
1045 MachineInstr &MI = *II; // ; SPILL_CRBIT <SrcReg>, <offset> in lowerCRBitSpilling()
1092 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LI8 : PPC::LI), Reg) in lowerCRBitSpilling()
1097 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LIS8 : PPC::LIS), Reg) in lowerCRBitSpilling()
1107 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::SETNBC8 : PPC::SETNBC), Reg) in lowerCRBitSpilling()
1121 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::SETB8 : PPC::SETB), Reg) in lowerCRBitSpilling()
1132 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRBitSpilling()
1143 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRBitSpilling()
1148 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRBitSpilling()
1154 MBB.erase(II); in lowerCRBitSpilling()
1161 void PPCRegisterInfo::lowerCRBitRestore(MachineBasicBlock::iterator II, in lowerCRBitRestore() argument
1164 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CRBIT <offset> in lowerCRBitRestore()
1181 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRBitRestore()
1184 BuildMI(MBB, II, dl, TII.get(TargetOpcode::IMPLICIT_DEF), DestReg); in lowerCRBitRestore()
1187 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), RegO) in lowerCRBitRestore()
1192 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWIMI8 : PPC::RLWIMI), RegO) in lowerCRBitRestore()
1199 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), in lowerCRBitRestore()
1208 MBB.erase(II); in lowerCRBitRestore()
1239 MachineBasicBlock::iterator II, DebugLoc DL, in spillRegPairs() argument
1255 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1259 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1264 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1268 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1277 void PPCRegisterInfo::lowerOctWordSpilling(MachineBasicBlock::iterator II, in lowerOctWordSpilling() argument
1281 MachineInstr &MI = *II; // STXVP <SrcReg>, <offset> in lowerOctWordSpilling()
1290 spillRegPairs(MBB, II, DL, TII, SrcReg, FrameIndex, IsLittleEndian, IsKilled, in lowerOctWordSpilling()
1293 MBB.erase(II); in lowerOctWordSpilling()
1313 void PPCRegisterInfo::lowerACCSpilling(MachineBasicBlock::iterator II, in lowerACCSpilling() argument
1315 MachineInstr &MI = *II; // SPILL_ACC <SrcReg>, <offset> in lowerACCSpilling()
1336 BuildMI(MBB, II, DL, TII.get(PPC::XXMFACC), SrcReg).addReg(SrcReg); in lowerACCSpilling()
1338 spillRegPairs(MBB, II, DL, TII, Reg, FrameIndex, IsLittleEndian, IsKilled, in lowerACCSpilling()
1341 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerACCSpilling()
1344 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerACCSpilling()
1349 BuildMI(MBB, II, DL, TII.get(PPC::XXMTACC), SrcReg).addReg(SrcReg); in lowerACCSpilling()
1352 MBB.erase(II); in lowerACCSpilling()
1356 void PPCRegisterInfo::lowerACCRestore(MachineBasicBlock::iterator II, in lowerACCRestore() argument
1358 MachineInstr &MI = *II; // <DestReg> = RESTORE_ACC <offset> in lowerACCRestore()
1378 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), Reg), in lowerACCRestore()
1380 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), Reg + 1), in lowerACCRestore()
1383 BuildMI(MBB, II, DL, TII.get(PPC::XXMTACC), DestReg).addReg(DestReg); in lowerACCRestore()
1386 MBB.erase(II); in lowerACCRestore()
1391 void PPCRegisterInfo::lowerWACCSpilling(MachineBasicBlock::iterator II, in lowerWACCSpilling() argument
1393 MachineInstr &MI = *II; // SPILL_WACC <SrcReg>, <offset> in lowerWACCSpilling()
1408 BuildMI(MBB, II, DL, TII.get(PPC::DMXXEXTFDMR512), VSRpReg0) in lowerWACCSpilling()
1412 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerWACCSpilling()
1415 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerWACCSpilling()
1420 MBB.erase(II); in lowerWACCSpilling()
1425 void PPCRegisterInfo::lowerWACCRestore(MachineBasicBlock::iterator II, in lowerWACCRestore() argument
1427 MachineInstr &MI = *II; // <DestReg> = RESTORE_WACC <offset> in lowerWACCRestore()
1442 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), VSRpReg0), in lowerWACCRestore()
1444 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), VSRpReg1), in lowerWACCRestore()
1448 BuildMI(MBB, II, DL, TII.get(PPC::DMXXINSTFDMR512), DestReg) in lowerWACCRestore()
1453 MBB.erase(II); in lowerWACCRestore()
1457 void PPCRegisterInfo::lowerQuadwordSpilling(MachineBasicBlock::iterator II, in lowerQuadwordSpilling() argument
1459 MachineInstr &MI = *II; in lowerQuadwordSpilling()
1472 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STD)) in lowerQuadwordSpilling()
1475 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STD)) in lowerQuadwordSpilling()
1480 MBB.erase(II); in lowerQuadwordSpilling()
1484 void PPCRegisterInfo::lowerQuadwordRestore(MachineBasicBlock::iterator II, in lowerQuadwordRestore() argument
1486 MachineInstr &MI = *II; in lowerQuadwordRestore()
1500 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LD), Reg), FrameIndex, in lowerQuadwordRestore()
1502 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LD), Reg + 1), FrameIndex, in lowerQuadwordRestore()
1506 MBB.erase(II); in lowerQuadwordRestore()
1580 PPCRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, in eliminateFrameIndex() argument
1586 MachineInstr &MI = *II; in eliminateFrameIndex()
1611 lowerDynamicAreaOffset(II); in eliminateFrameIndex()
1619 lowerDynamicAlloc(II); in eliminateFrameIndex()
1629 lowerPrepareProbedAlloca(II); in eliminateFrameIndex()
1636 lowerCRSpilling(II, FrameIndex); in eliminateFrameIndex()
1639 lowerCRRestore(II, FrameIndex); in eliminateFrameIndex()
1642 lowerCRBitSpilling(II, FrameIndex); in eliminateFrameIndex()
1645 lowerCRBitRestore(II, FrameIndex); in eliminateFrameIndex()
1648 lowerACCSpilling(II, FrameIndex); in eliminateFrameIndex()
1651 lowerACCRestore(II, FrameIndex); in eliminateFrameIndex()
1654 lowerOctWordSpilling(II, FrameIndex); in eliminateFrameIndex()
1657 lowerWACCSpilling(II, FrameIndex); in eliminateFrameIndex()
1660 lowerWACCRestore(II, FrameIndex); in eliminateFrameIndex()
1663 lowerQuadwordSpilling(II, FrameIndex); in eliminateFrameIndex()
1666 lowerQuadwordRestore(II, FrameIndex); in eliminateFrameIndex()
1748 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::MTVSRD : PPC::MTVSRWZ), VSReg) in eliminateFrameIndex()
1757 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), SReg) in eliminateFrameIndex()
1760 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LIS8 : PPC::LIS), SRegHi) in eliminateFrameIndex()
1762 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::ORI8 : PPC::ORI), SReg) in eliminateFrameIndex()
1767 TII.materializeImmPostRA(MBB, II, dl, SReg, Offset); in eliminateFrameIndex()
1796 BuildMI(MBB, ++II, dl, TII.get(is64Bit ? PPC::MFVSRD : PPC::MFVSRWZ), SReg) in eliminateFrameIndex()
1805 BuildMI(MBB, II, dl, TII.get(PPC::ADD8), NewReg) in eliminateFrameIndex()