Lines Matching defs:NewBB
253 void updateForInsertedWaterBlock(MachineBasicBlock *NewBB);
975 void ARMConstantIslands::updateForInsertedWaterBlock(MachineBasicBlock *NewBB) {
977 NewBB->getParent()->RenumberBlocks(NewBB);
982 BBUtils->insert(NewBB->getNumber(), BasicBlockInfo());
986 water_iterator IP = llvm::lower_bound(WaterList, NewBB, CompareMBBNumbers);
987 WaterList.insert(IP, NewBB);
1004 MachineBasicBlock *NewBB =
1007 MF->insert(MBBI, NewBB);
1009 // Splice the instructions starting with MI over to NewBB.
1010 NewBB->splice(NewBB->end(), OrigBB, MI, OrigBB->end());
1012 // Add an unconditional branch from OrigBB to NewBB.
1018 BuildMI(OrigBB, DebugLoc(), TII->get(Opc)).addMBB(NewBB);
1021 .addMBB(NewBB)
1025 // Update the CFG. All succs of OrigBB are now succs of NewBB.
1026 NewBB->transferSuccessors(OrigBB);
1028 // OrigBB branches to NewBB.
1029 OrigBB->addSuccessor(NewBB);
1035 NewBB->addLiveIn(L);
1039 // the Water goes after OrigBB, not NewBB.
1040 MF->RenumberBlocks(NewBB);
1045 BBUtils->insert(NewBB->getNumber(), BasicBlockInfo());
1050 // unconditional branch - in that case we want to insert NewBB).
1054 WaterList.insert(std::next(IP), NewBB);
1068 BBUtils->computeBlockSize(NewBB);
1073 return NewBB;
2456 MachineBasicBlock *NewBB =
2458 if (NewBB)
2459 MJTI->ReplaceMBBInJumpTable(JTI, MBB, NewBB);
2500 MachineBasicBlock *NewBB =
2503 MF->insert(MBBI, NewBB);
2507 NewBB->addLiveIn(RegMaskPair);
2509 // Add an unconditional branch from NewBB to BB.
2513 BuildMI(NewBB, DebugLoc(), TII->get(ARM::t2B))
2517 BuildMI(NewBB, DebugLoc(), TII->get(ARM::tB))
2522 MF->RenumberBlocks(NewBB);
2526 NewBB->addSuccessor(BB);
2527 JTBB->replaceSuccessor(BB, NewBB);
2530 return NewBB;