Lines Matching refs:MBBI
44 MachineBasicBlock::iterator MBBI,
49 MachineBasicBlock::iterator MBBI,
54 MachineBasicBlock::iterator MBBI,
56 bool selectMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
78 MachineBasicBlock::iterator MBBI, in selectLOCRMux() argument
82 Register DestReg = MBBI->getOperand(0).getReg(); in selectLOCRMux()
83 Register SrcReg = MBBI->getOperand(2).getReg(); in selectLOCRMux()
88 MBBI->setDesc(TII->get(LowOpcode)); in selectLOCRMux()
90 MBBI->setDesc(TII->get(HighOpcode)); in selectLOCRMux()
92 expandCondMove(MBB, MBBI, NextMBBI); in selectLOCRMux()
99 MachineBasicBlock::iterator MBBI, in selectSELRMux() argument
103 Register DestReg = MBBI->getOperand(0).getReg(); in selectSELRMux()
104 Register Src1Reg = MBBI->getOperand(1).getReg(); in selectSELRMux()
105 Register Src2Reg = MBBI->getOperand(2).getReg(); in selectSELRMux()
115 BuildMI(*MBBI->getParent(), MBBI, MBBI->getDebugLoc(), in selectSELRMux()
117 .addReg(MBBI->getOperand(1).getReg(), getRegState(MBBI->getOperand(1))); in selectSELRMux()
118 MBBI->getOperand(1).setReg(DestReg); in selectSELRMux()
122 BuildMI(*MBBI->getParent(), MBBI, MBBI->getDebugLoc(), in selectSELRMux()
124 .addReg(MBBI->getOperand(2).getReg(), getRegState(MBBI->getOperand(2))); in selectSELRMux()
125 MBBI->getOperand(2).setReg(DestReg); in selectSELRMux()
133 TII->commuteInstruction(*MBBI, false, 1, 2); in selectSELRMux()
139 MBBI->setDesc(TII->get(LowOpcode)); in selectSELRMux()
141 MBBI->setDesc(TII->get(HighOpcode)); in selectSELRMux()
144 expandCondMove(MBB, MBBI, NextMBBI); in selectSELRMux()
151 MachineBasicBlock::iterator MBBI, in expandCondMove() argument
155 MachineInstr &MI = *MBBI; in expandCondMove()
166 for (auto I = std::prev(MBB.end()); I != MBBI; --I) in expandCondMove()
206 MachineBasicBlock::iterator MBBI, in selectMI() argument
208 MachineInstr &MI = *MBBI; in selectMI()
231 selectLOCRMux(MBB, MBBI, NextMBBI, SystemZ::LOCR, SystemZ::LOCFHR); in selectMI()
234 selectSELRMux(MBB, MBBI, NextMBBI, SystemZ::SELR, SystemZ::SELFHR); in selectMI()
246 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); in selectMBB() local
247 while (MBBI != E) { in selectMBB()
248 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in selectMBB()
249 Modified |= selectMI(MBB, MBBI, NMBBI); in selectMBB()
250 MBBI = NMBBI; in selectMBB()