Lines Matching refs:MBBI
67 bool expandMI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
69 bool expandMOVImm(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
73 MachineBasicBlock::iterator MBBI);
74 bool expandCMP_SWAP(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI,
79 MachineBasicBlock::iterator MBBI,
82 MachineBasicBlock::iterator MBBI,
85 MachineBasicBlock::iterator MBBI, unsigned Opc,
88 MachineBasicBlock::iterator MBBI);
89 bool expandCALL_BTI(MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI);
91 MachineBasicBlock::iterator MBBI);
119 MachineBasicBlock::iterator MBBI, in expandMOVImm() argument
121 MachineInstr &MI = *MBBI; in expandMOVImm()
147 MIBS.push_back(BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(I->Opcode)) in expandMOVImm()
157 MIBS.push_back(BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(I->Opcode)) in expandMOVImm()
168 MIBS.push_back(BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(I->Opcode)) in expandMOVImm()
185 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, unsigned LdarOp, in expandCMP_SWAP() argument
188 MachineInstr &MI = *MBBI; in expandCMP_SWAP()
265 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, in expandCMP_SWAP_128() argument
267 MachineInstr &MI = *MBBI; in expandCMP_SWAP_128()
441 MachineBasicBlock::iterator MBBI) { in expand_DestructiveOp() argument
561 PRFX = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(MovPrfxZero)) in expand_DestructiveOp()
572 PRFX = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(MovPrfx)) in expand_DestructiveOp()
581 DOP = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(Opcode)) in expand_DestructiveOp()
606 finalizeBundle(MBB, PRFX->getIterator(), MBBI->getIterator()); in expand_DestructiveOp()
616 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, in expandSetTagLoop() argument
618 MachineInstr &MI = *MBBI; in expandSetTagLoop()
634 BuildMI(MBB, MBBI, DL, TII->get(OpCode1), AddressReg) in expandSetTagLoop()
641 BuildMI(MBB, MBBI, DL, TII->get(AArch64::MOVi64imm), SizeReg) in expandSetTagLoop()
690 MachineBasicBlock::iterator MBBI, in expandSVESpillFill() argument
694 MachineInstr &MI = *MBBI; in expandSVESpillFill()
700 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(Opc)) in expandSVESpillFill()
712 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI) { in expandCALL_RVMARKER() argument
718 MachineInstr &MI = *MBBI; in expandCALL_RVMARKER()
727 OriginalCall = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(Opc)).getInstr(); in expandCALL_RVMARKER()
744 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ORRXrs)) in expandCALL_RVMARKER()
750 auto *RVCall = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::BL)) in expandCALL_RVMARKER()
764 MachineBasicBlock::iterator MBBI) { in expandCALL_BTI() argument
771 MachineInstr &MI = *MBBI; in expandCALL_BTI()
777 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(Opc)).getInstr(); in expandCALL_BTI()
781 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::HINT)) in expandCALL_BTI()
795 MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI) { in expandStoreSwiftAsyncContext() argument
796 Register CtxReg = MBBI->getOperand(0).getReg(); in expandStoreSwiftAsyncContext()
797 Register BaseReg = MBBI->getOperand(1).getReg(); in expandStoreSwiftAsyncContext()
798 int Offset = MBBI->getOperand(2).getImm(); in expandStoreSwiftAsyncContext()
799 DebugLoc DL(MBBI->getDebugLoc()); in expandStoreSwiftAsyncContext()
803 BuildMI(MBB, MBBI, DL, TII->get(AArch64::STRXui)) in expandStoreSwiftAsyncContext()
808 MBBI->eraseFromParent(); in expandStoreSwiftAsyncContext()
820 BuildMI(MBB, MBBI, DL, TII->get(Opc), AArch64::X16) in expandStoreSwiftAsyncContext()
825 BuildMI(MBB, MBBI, DL, TII->get(AArch64::MOVKXi), AArch64::X16) in expandStoreSwiftAsyncContext()
832 BuildMI(MBB, MBBI, DL, TII->get(AArch64::ORRXrs), AArch64::X17) in expandStoreSwiftAsyncContext()
837 BuildMI(MBB, MBBI, DL, TII->get(AArch64::PACDB), AArch64::X17) in expandStoreSwiftAsyncContext()
841 BuildMI(MBB, MBBI, DL, TII->get(AArch64::STRXui)) in expandStoreSwiftAsyncContext()
847 MBBI->eraseFromParent(); in expandStoreSwiftAsyncContext()
854 MachineBasicBlock::iterator MBBI, in expandMI() argument
856 MachineInstr &MI = *MBBI; in expandMI()
865 return expand_DestructiveOp(MI, MBB, MBBI); in expandMI()
878 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
887 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
897 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
905 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
913 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
985 MBB.insert(MBBI, NewMI); in expandMI()
1004 MachineInstrBuilder MIB = BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
1021 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ADRP), DstReg); in expandMI()
1028 MIB2 = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::LDRWui)) in expandMI()
1034 MIB2 = BuildMI(MBB, MBBI, DL, TII->get(AArch64::LDRXui)) in expandMI()
1077 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ADRP), DstReg) in expandMI()
1079 auto MIB2 = BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
1099 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ADRP), DstReg) in expandMI()
1113 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::MOVKXi), DstReg) in expandMI()
1120 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ADDXri)) in expandMI()
1132 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::ADDXri)) in expandMI()
1150 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::MRS), DstReg) in expandMI()
1157 return expandMOVImm(MBB, MBBI, 32); in expandMI()
1159 return expandMOVImm(MBB, MBBI, 64); in expandMI()
1167 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::RET)) in expandMI()
1174 return expandCMP_SWAP(MBB, MBBI, AArch64::LDAXRB, AArch64::STLXRB, in expandMI()
1179 return expandCMP_SWAP(MBB, MBBI, AArch64::LDAXRH, AArch64::STLXRH, in expandMI()
1184 return expandCMP_SWAP(MBB, MBBI, AArch64::LDAXRW, AArch64::STLXRW, in expandMI()
1189 return expandCMP_SWAP(MBB, MBBI, in expandMI()
1197 return expandCMP_SWAP_128(MBB, MBBI, NextMBBI); in expandMI()
1202 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
1233 BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::IRG)) in expandMI()
1242 BuildMI(MBB, MBBI, MI.getDebugLoc(), in expandMI()
1253 return expandSetTagLoop(MBB, MBBI, NextMBBI); in expandMI()
1260 return expandSVESpillFill(MBB, MBBI, AArch64::STR_ZXI, 4); in expandMI()
1262 return expandSVESpillFill(MBB, MBBI, AArch64::STR_ZXI, 3); in expandMI()
1264 return expandSVESpillFill(MBB, MBBI, AArch64::STR_ZXI, 2); in expandMI()
1266 return expandSVESpillFill(MBB, MBBI, AArch64::LDR_ZXI, 4); in expandMI()
1268 return expandSVESpillFill(MBB, MBBI, AArch64::LDR_ZXI, 3); in expandMI()
1270 return expandSVESpillFill(MBB, MBBI, AArch64::LDR_ZXI, 2); in expandMI()
1272 return expandCALL_RVMARKER(MBB, MBBI); in expandMI()
1274 return expandCALL_BTI(MBB, MBBI); in expandMI()
1276 return expandStoreSwiftAsyncContext(MBB, MBBI); in expandMI()
1286 MachineBasicBlock::iterator MBBI = MBB.begin(), E = MBB.end(); in expandMBB() local
1287 while (MBBI != E) { in expandMBB()
1288 MachineBasicBlock::iterator NMBBI = std::next(MBBI); in expandMBB()
1289 Modified |= expandMI(MBB, MBBI, NMBBI); in expandMBB()
1290 MBBI = NMBBI; in expandMBB()