Lines Matching refs:II

700 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const {  in lowerDynamicAlloc()
702 MachineInstr &MI = *II; in lowerDynamicAlloc()
729 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, Reg); in lowerDynamicAlloc()
733 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc()
737 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
741 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc()
745 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
751 MBB.erase(II); in lowerDynamicAlloc()
757 void PPCRegisterInfo::prepareDynamicAlloca(MachineBasicBlock::iterator II, in prepareDynamicAlloca() argument
762 MachineInstr &MI = *II; in prepareDynamicAlloca()
794 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), FramePointer) in prepareDynamicAlloca()
798 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), FramePointer) in prepareDynamicAlloca()
802 BuildMI(MBB, II, dl, TII.get(PPC::LD), FramePointer) in prepareDynamicAlloca()
806 BuildMI(MBB, II, dl, TII.get(PPC::LWZ), FramePointer) in prepareDynamicAlloca()
818 BuildMI(MBB, II, dl, TII.get(PPC::LI8), NegSizeReg) in prepareDynamicAlloca()
823 BuildMI(MBB, II, dl, TII.get(PPC::AND8), NegSizeReg) in prepareDynamicAlloca()
835 BuildMI(MBB, II, dl, TII.get(PPC::LI), NegSizeReg) in prepareDynamicAlloca()
840 BuildMI(MBB, II, dl, TII.get(PPC::AND), NegSizeReg) in prepareDynamicAlloca()
849 MachineBasicBlock::iterator II) const { in lowerPrepareProbedAlloca()
850 MachineInstr &MI = *II; in lowerPrepareProbedAlloca()
873 BuildMI(MBB, II, dl, CopyInst, ActualNegSizeReg) in lowerPrepareProbedAlloca()
879 prepareDynamicAlloca(II, NegSizeReg, KillNegSizeReg, FramePointer); in lowerPrepareProbedAlloca()
883 BuildMI(MBB, II, dl, CopyInst, ActualNegSizeReg) in lowerPrepareProbedAlloca()
886 MBB.erase(II); in lowerPrepareProbedAlloca()
890 MachineBasicBlock::iterator II) const { in lowerDynamicAreaOffset()
892 MachineInstr &MI = *II; in lowerDynamicAreaOffset()
906 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), in lowerDynamicAreaOffset()
909 MBB.erase(II); in lowerDynamicAreaOffset()
920 void PPCRegisterInfo::lowerCRSpilling(MachineBasicBlock::iterator II, in lowerCRSpilling() argument
923 MachineInstr &MI = *II; // ; SPILL_CR <SrcReg>, <offset> in lowerCRSpilling()
940 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRSpilling()
950 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRSpilling()
957 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRSpilling()
962 MBB.erase(II); in lowerCRSpilling()
965 void PPCRegisterInfo::lowerCRRestore(MachineBasicBlock::iterator II, in lowerCRRestore() argument
968 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CR <offset> in lowerCRRestore()
985 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRRestore()
996 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRRestore()
1001 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), DestReg) in lowerCRRestore()
1005 MBB.erase(II); in lowerCRRestore()
1008 void PPCRegisterInfo::lowerCRBitSpilling(MachineBasicBlock::iterator II, in lowerCRBitSpilling() argument
1011 MachineInstr &MI = *II; // ; SPILL_CRBIT <SrcReg>, <offset> in lowerCRBitSpilling()
1058 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LI8 : PPC::LI), Reg) in lowerCRBitSpilling()
1063 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LIS8 : PPC::LIS), Reg) in lowerCRBitSpilling()
1073 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::SETNBC8 : PPC::SETNBC), Reg) in lowerCRBitSpilling()
1087 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::SETB8 : PPC::SETB), Reg) in lowerCRBitSpilling()
1098 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRBitSpilling()
1109 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRBitSpilling()
1114 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRBitSpilling()
1120 MBB.erase(II); in lowerCRBitSpilling()
1127 void PPCRegisterInfo::lowerCRBitRestore(MachineBasicBlock::iterator II, in lowerCRBitRestore() argument
1130 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CRBIT <offset> in lowerCRBitRestore()
1147 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRBitRestore()
1150 BuildMI(MBB, II, dl, TII.get(TargetOpcode::IMPLICIT_DEF), DestReg); in lowerCRBitRestore()
1153 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), RegO) in lowerCRBitRestore()
1158 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWIMI8 : PPC::RLWIMI), RegO) in lowerCRBitRestore()
1165 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), in lowerCRBitRestore()
1174 MBB.erase(II); in lowerCRBitRestore()
1205 MachineBasicBlock::iterator II, DebugLoc DL, in spillRegPairs() argument
1216 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1220 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1225 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1229 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXV)) in spillRegPairs()
1238 void PPCRegisterInfo::lowerOctWordSpilling(MachineBasicBlock::iterator II, in lowerOctWordSpilling() argument
1242 MachineInstr &MI = *II; // STXVP <SrcReg>, <offset> in lowerOctWordSpilling()
1251 spillRegPairs(MBB, II, DL, TII, SrcReg, FrameIndex, IsLittleEndian, IsKilled, in lowerOctWordSpilling()
1254 MBB.erase(II); in lowerOctWordSpilling()
1262 void PPCRegisterInfo::lowerACCSpilling(MachineBasicBlock::iterator II, in lowerACCSpilling() argument
1264 MachineInstr &MI = *II; // SPILL_ACC <SrcReg>, <offset> in lowerACCSpilling()
1285 BuildMI(MBB, II, DL, TII.get(PPC::XXMFACC), SrcReg).addReg(SrcReg); in lowerACCSpilling()
1287 spillRegPairs(MBB, II, DL, TII, Reg, FrameIndex, IsLittleEndian, IsKilled, in lowerACCSpilling()
1290 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerACCSpilling()
1293 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STXVP)) in lowerACCSpilling()
1298 BuildMI(MBB, II, DL, TII.get(PPC::XXMTACC), SrcReg).addReg(SrcReg); in lowerACCSpilling()
1301 MBB.erase(II); in lowerACCSpilling()
1305 void PPCRegisterInfo::lowerACCRestore(MachineBasicBlock::iterator II, in lowerACCRestore() argument
1307 MachineInstr &MI = *II; // <DestReg> = RESTORE_ACC <offset> in lowerACCRestore()
1327 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), Reg), in lowerACCRestore()
1329 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LXVP), Reg + 1), in lowerACCRestore()
1332 BuildMI(MBB, II, DL, TII.get(PPC::XXMTACC), DestReg).addReg(DestReg); in lowerACCRestore()
1335 MBB.erase(II); in lowerACCRestore()
1339 void PPCRegisterInfo::lowerQuadwordSpilling(MachineBasicBlock::iterator II, in lowerQuadwordSpilling() argument
1341 MachineInstr &MI = *II; in lowerQuadwordSpilling()
1354 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STD)) in lowerQuadwordSpilling()
1357 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::STD)) in lowerQuadwordSpilling()
1362 MBB.erase(II); in lowerQuadwordSpilling()
1366 void PPCRegisterInfo::lowerQuadwordRestore(MachineBasicBlock::iterator II, in lowerQuadwordRestore() argument
1368 MachineInstr &MI = *II; in lowerQuadwordRestore()
1382 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LD), Reg), FrameIndex, in lowerQuadwordRestore()
1384 addFrameReference(BuildMI(MBB, II, DL, TII.get(PPC::LD), Reg + 1), FrameIndex, in lowerQuadwordRestore()
1388 MBB.erase(II); in lowerQuadwordRestore()
1462 PPCRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, in eliminateFrameIndex() argument
1468 MachineInstr &MI = *II; in eliminateFrameIndex()
1493 lowerDynamicAreaOffset(II); in eliminateFrameIndex()
1500 lowerDynamicAlloc(II); in eliminateFrameIndex()
1509 lowerPrepareProbedAlloca(II); in eliminateFrameIndex()
1515 lowerCRSpilling(II, FrameIndex); in eliminateFrameIndex()
1518 lowerCRRestore(II, FrameIndex); in eliminateFrameIndex()
1521 lowerCRBitSpilling(II, FrameIndex); in eliminateFrameIndex()
1524 lowerCRBitRestore(II, FrameIndex); in eliminateFrameIndex()
1527 lowerACCSpilling(II, FrameIndex); in eliminateFrameIndex()
1530 lowerACCRestore(II, FrameIndex); in eliminateFrameIndex()
1533 lowerOctWordSpilling(II, FrameIndex); in eliminateFrameIndex()
1536 lowerQuadwordSpilling(II, FrameIndex); in eliminateFrameIndex()
1539 lowerQuadwordRestore(II, FrameIndex); in eliminateFrameIndex()
1613 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LI8 : PPC::LI), SReg) in eliminateFrameIndex()
1616 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LIS8 : PPC::LIS), SRegHi) in eliminateFrameIndex()
1618 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::ORI8 : PPC::ORI), SReg) in eliminateFrameIndex()
1623 TII.materializeImmPostRA(MBB, II, dl, SReg, Offset); in eliminateFrameIndex()
1655 BuildMI(MBB, II, dl, TII.get(PPC::ADD8), NewReg) in eliminateFrameIndex()