Lines Matching defs:MBB
154 /// Add live-in registers of basic block \p MBB to \p LiveRegs.
155 void LivePhysRegs::addBlockLiveIns(const MachineBasicBlock &MBB) {
156 for (const auto &LI : MBB.liveins()) {
209 void LivePhysRegs::addLiveOutsNoPristines(const MachineBasicBlock &MBB) {
211 for (const MachineBasicBlock *Succ : MBB.successors())
213 if (MBB.isReturnBlock()) {
222 const MachineFunction &MF = *MBB.getParent();
232 void LivePhysRegs::addLiveOuts(const MachineBasicBlock &MBB) {
233 const MachineFunction &MF = *MBB.getParent();
235 addLiveOutsNoPristines(MBB);
238 void LivePhysRegs::addLiveIns(const MachineBasicBlock &MBB) {
239 const MachineFunction &MF = *MBB.getParent();
241 addBlockLiveIns(MBB);
244 void LivePhysRegs::addLiveInsNoPristines(const MachineBasicBlock &MBB) {
245 addBlockLiveIns(MBB);
249 const MachineBasicBlock &MBB) {
250 const MachineFunction &MF = *MBB.getParent();
254 LiveRegs.addLiveOutsNoPristines(MBB);
255 for (const MachineInstr &MI : llvm::reverse(MBB))
259 void llvm::addLiveIns(MachineBasicBlock &MBB, const LivePhysRegs &LiveRegs) {
260 assert(MBB.livein_empty() && "Expected empty live-in list");
261 const MachineFunction &MF = *MBB.getParent();
272 MBB.addLiveIn(Reg);
276 void llvm::recomputeLivenessFlags(MachineBasicBlock &MBB) {
277 const MachineFunction &MF = *MBB.getParent();
285 LiveRegs.addLiveOutsNoPristines(MBB);
287 for (MachineInstr &MI : llvm::reverse(MBB)) {
337 MachineBasicBlock &MBB) {
338 computeLiveIns(LiveRegs, MBB);
339 addLiveIns(MBB, LiveRegs);