Lines Matching refs:MBBI
44 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
46 bool expandMovImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
47 bool expandMovAddr(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
63 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); in expandMBB() local
64 while (MBBI != E) { in expandMBB()
65 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in expandMBB()
66 Modified |= expandMI(MBB, MBBI, NMBBI); in expandMBB()
67 MBBI = NMBBI; in expandMBB()
74 MachineBasicBlock::iterator MBBI, in expandMI() argument
76 switch (MBBI->getOpcode()) { in expandMI()
78 return expandMovImm(MBB, MBBI); in expandMI()
80 return expandMovAddr(MBB, MBBI); in expandMI()
87 MachineBasicBlock::iterator MBBI) { in expandMovImm() argument
88 DebugLoc DL = MBBI->getDebugLoc(); in expandMovImm()
90 int64_t Val = MBBI->getOperand(1).getImm(); in expandMovImm()
92 Register DstReg = MBBI->getOperand(0).getReg(); in expandMovImm()
93 bool DstIsDead = MBBI->getOperand(0).isDead(); in expandMovImm()
94 bool Renamable = MBBI->getOperand(0).isRenamable(); in expandMovImm()
96 TII->movImm(MBB, MBBI, DL, DstReg, Val, MachineInstr::NoFlags, Renamable, in expandMovImm()
99 MBBI->eraseFromParent(); in expandMovImm()
104 MachineBasicBlock::iterator MBBI) { in expandMovAddr() argument
105 DebugLoc DL = MBBI->getDebugLoc(); in expandMovAddr()
107 Register DstReg = MBBI->getOperand(0).getReg(); in expandMovAddr()
108 bool DstIsDead = MBBI->getOperand(0).isDead(); in expandMovAddr()
109 bool Renamable = MBBI->getOperand(0).isRenamable(); in expandMovAddr()
111 BuildMI(MBB, MBBI, DL, TII->get(RISCV::LUI)) in expandMovAddr()
113 .add(MBBI->getOperand(1)); in expandMovAddr()
114 BuildMI(MBB, MBBI, DL, TII->get(RISCV::ADDI)) in expandMovAddr()
118 .add(MBBI->getOperand(2)); in expandMovAddr()
119 MBBI->eraseFromParent(); in expandMovAddr()