Lines Matching refs:II
320 void PPCRegisterInfo::lowerDynamicAlloc(MachineBasicBlock::iterator II) const { in lowerDynamicAlloc()
322 MachineInstr &MI = *II; in lowerDynamicAlloc()
359 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), Reg) in lowerDynamicAlloc()
363 BuildMI(MBB, II, dl, TII.get(PPC::LD), Reg) in lowerDynamicAlloc()
367 BuildMI(MBB, II, dl, TII.get(PPC::LWZ), Reg) in lowerDynamicAlloc()
384 BuildMI(MBB, II, dl, TII.get(PPC::LI8), NegSizeReg) in lowerDynamicAlloc()
389 BuildMI(MBB, II, dl, TII.get(PPC::AND8), NegSizeReg) in lowerDynamicAlloc()
395 BuildMI(MBB, II, dl, TII.get(PPC::STDUX), PPC::X1) in lowerDynamicAlloc()
399 BuildMI(MBB, II, dl, TII.get(PPC::ADDI8), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
409 BuildMI(MBB, II, dl, TII.get(PPC::LI), NegSizeReg) in lowerDynamicAlloc()
414 BuildMI(MBB, II, dl, TII.get(PPC::AND), NegSizeReg) in lowerDynamicAlloc()
420 BuildMI(MBB, II, dl, TII.get(PPC::STWUX), PPC::R1) in lowerDynamicAlloc()
424 BuildMI(MBB, II, dl, TII.get(PPC::ADDI), MI.getOperand(0).getReg()) in lowerDynamicAlloc()
430 MBB.erase(II); in lowerDynamicAlloc()
434 MachineBasicBlock::iterator II) const { in lowerDynamicAreaOffset()
436 MachineInstr &MI = *II; in lowerDynamicAreaOffset()
449 BuildMI(MBB, II, dl, TII.get(PPC::LI), MI.getOperand(0).getReg()) in lowerDynamicAreaOffset()
451 MBB.erase(II); in lowerDynamicAreaOffset()
462 void PPCRegisterInfo::lowerCRSpilling(MachineBasicBlock::iterator II, in lowerCRSpilling() argument
465 MachineInstr &MI = *II; // ; SPILL_CR <SrcReg>, <offset> in lowerCRSpilling()
482 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRSpilling()
492 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRSpilling()
499 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRSpilling()
504 MBB.erase(II); in lowerCRSpilling()
507 void PPCRegisterInfo::lowerCRRestore(MachineBasicBlock::iterator II, in lowerCRRestore() argument
510 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CR <offset> in lowerCRRestore()
527 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRRestore()
538 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRRestore()
543 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), DestReg) in lowerCRRestore()
547 MBB.erase(II); in lowerCRRestore()
550 void PPCRegisterInfo::lowerCRBitSpilling(MachineBasicBlock::iterator II, in lowerCRBitSpilling() argument
553 MachineInstr &MI = *II; // ; SPILL_CRBIT <SrcReg>, <offset> in lowerCRBitSpilling()
568 BuildMI(MBB, II, dl, TII.get(TargetOpcode::KILL), in lowerCRBitSpilling()
572 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), Reg) in lowerCRBitSpilling()
581 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWINM8 : PPC::RLWINM), Reg) in lowerCRBitSpilling()
586 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::STW8 : PPC::STW)) in lowerCRBitSpilling()
591 MBB.erase(II); in lowerCRBitSpilling()
594 void PPCRegisterInfo::lowerCRBitRestore(MachineBasicBlock::iterator II, in lowerCRBitRestore() argument
597 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_CRBIT <offset> in lowerCRBitRestore()
614 addFrameReference(BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::LWZ8 : PPC::LWZ), in lowerCRBitRestore()
617 BuildMI(MBB, II, dl, TII.get(TargetOpcode::IMPLICIT_DEF), DestReg); in lowerCRBitRestore()
620 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MFOCRF8 : PPC::MFOCRF), RegO) in lowerCRBitRestore()
625 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::RLWIMI8 : PPC::RLWIMI), RegO) in lowerCRBitRestore()
632 BuildMI(MBB, II, dl, TII.get(LP64 ? PPC::MTOCRF8 : PPC::MTOCRF), in lowerCRBitRestore()
641 MBB.erase(II); in lowerCRBitRestore()
644 void PPCRegisterInfo::lowerVRSAVESpilling(MachineBasicBlock::iterator II, in lowerVRSAVESpilling() argument
647 MachineInstr &MI = *II; // ; SPILL_VRSAVE <SrcReg>, <offset> in lowerVRSAVESpilling()
659 BuildMI(MBB, II, dl, TII.get(PPC::MFVRSAVEv), Reg) in lowerVRSAVESpilling()
663 BuildMI(MBB, II, dl, TII.get(PPC::STW)).addReg(Reg, RegState::Kill), in lowerVRSAVESpilling()
667 MBB.erase(II); in lowerVRSAVESpilling()
670 void PPCRegisterInfo::lowerVRSAVERestore(MachineBasicBlock::iterator II, in lowerVRSAVERestore() argument
673 MachineInstr &MI = *II; // ; <DestReg> = RESTORE_VRSAVE <offset> in lowerVRSAVERestore()
687 addFrameReference(BuildMI(MBB, II, dl, TII.get(PPC::LWZ), in lowerVRSAVERestore()
690 BuildMI(MBB, II, dl, TII.get(PPC::MTVRSAVEv), DestReg) in lowerVRSAVERestore()
694 MBB.erase(II); in lowerVRSAVERestore()
748 PPCRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II, in eliminateFrameIndex() argument
754 MachineInstr &MI = *II; in eliminateFrameIndex()
779 lowerDynamicAreaOffset(II); in eliminateFrameIndex()
786 lowerDynamicAlloc(II); in eliminateFrameIndex()
792 lowerCRSpilling(II, FrameIndex); in eliminateFrameIndex()
795 lowerCRRestore(II, FrameIndex); in eliminateFrameIndex()
798 lowerCRBitSpilling(II, FrameIndex); in eliminateFrameIndex()
801 lowerCRBitRestore(II, FrameIndex); in eliminateFrameIndex()
804 lowerVRSAVESpilling(II, FrameIndex); in eliminateFrameIndex()
807 lowerVRSAVERestore(II, FrameIndex); in eliminateFrameIndex()
864 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::LIS8 : PPC::LIS), SRegHi) in eliminateFrameIndex()
866 BuildMI(MBB, II, dl, TII.get(is64Bit ? PPC::ORI8 : PPC::ORI), SReg) in eliminateFrameIndex()