Lines Matching refs:MII
64 MachineBasicBlock::iterator &MII,
129 MachineBasicBlock::iterator MII = MBB->begin(); in fixupLoopInstrs() local
130 while (MII != MIE) { in fixupLoopInstrs()
131 if (isHardwareLoop(MII)) { in fixupLoopInstrs()
132 RS.forward(MII); in fixupLoopInstrs()
133 assert(MII->getOperand(0).isMBB() && in fixupLoopInstrs()
135 int Sub = InstOffset - BlockToInstOffset[MII->getOperand(0).getMBB()]; in fixupLoopInstrs()
139 convertLoopInstr(MF, MII, RS); in fixupLoopInstrs()
140 MII = MBB->erase(MII); in fixupLoopInstrs()
143 ++MII; in fixupLoopInstrs()
146 ++MII; in fixupLoopInstrs()
159 MachineBasicBlock::iterator &MII, in convertLoopInstr() argument
162 MachineBasicBlock *MBB = MII->getParent(); in convertLoopInstr()
163 DebugLoc DL = MII->getDebugLoc(); in convertLoopInstr()
164 unsigned Scratch = RS.scavengeRegister(&Hexagon::IntRegsRegClass, MII, 0); in convertLoopInstr()
167 if (MII->getOperand(1).isReg()) { in convertLoopInstr()
169 BuildMI(*MBB, MII, DL, TII->get(Hexagon::TFCR), Hexagon::LC0) in convertLoopInstr()
170 .addReg(MII->getOperand(1).getReg()); in convertLoopInstr()
173 BuildMI(*MBB, MII, DL, TII->get(Hexagon::TFRI), Scratch) in convertLoopInstr()
174 .addImm(MII->getOperand(1).getImm()); in convertLoopInstr()
175 BuildMI(*MBB, MII, DL, TII->get(Hexagon::TFCR), Hexagon::LC0) in convertLoopInstr()
179 BuildMI(*MBB, MII, DL, TII->get(Hexagon::CONST32_Label), Scratch) in convertLoopInstr()
180 .addMBB(MII->getOperand(0).getMBB()); in convertLoopInstr()
181 BuildMI(*MBB, MII, DL, TII->get(Hexagon::TFCR), Hexagon::SA0) in convertLoopInstr()