Lines Matching full:mbb
114 static unsigned calcLiveInMask(MachineBasicBlock *MBB) {
116 for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
117 E = MBB->livein_end(); I != E; ++I) {
129 MachineBasicBlock *MBB; // Current basic block
169 // Set up our stack model to match the incoming registers to MBB.
238 DebugLoc dl = I == MBB->end() ? DebugLoc() : I->getDebugLoc();
253 BuildMI(*MBB, I, dl, TII->get(X86::XCH_F)).addReg(STReg);
258 DebugLoc dl = I == MBB->end() ? DebugLoc() : I->getDebugLoc();
262 BuildMI(*MBB, I, dl, TII->get(X86::LD_Frr)).addReg(STReg);
304 bool processBasicBlock(MachineFunction &MF, MachineBasicBlock &MBB);
358 // Prepare cross-MBB liveness.
396 MachineBasicBlock *MBB = I;
397 const unsigned Mask = calcLiveInMask(MBB);
400 // Update MBB ingoing bundle mask.
401 LiveBundles[Bundles->getBundle(MBB->getNumber(), false)].Mask |= Mask;
410 MBB = &BB;
498 DEBUG(dbgs() << "\nSetting up live-ins for BB#" << MBB->getNumber()
499 << " derived from " << MBB->getName() << ".\n");
501 // Get the live-in bundle for MBB.
503 LiveBundles[Bundles->getBundle(MBB->getNumber(), false)];
515 MBB->addLiveIn(X86::ST0+i-1);
524 adjustLiveRegs(calcLiveInMask(MBB), MBB->begin());
525 DEBUG(MBB->dump());
529 /// MBB. Shuffle live registers to match the expected fixed stack of any
534 if (MBB->succ_empty())
537 DEBUG(dbgs() << "Setting up live-outs for BB#" << MBB->getNumber()
538 << " derived from " << MBB->getName() << ".\n");
540 // Get MBB's live-out bundle.
541 unsigned BundleIdx = Bundles->getBundle(MBB->getNumber(), true);
546 MachineBasicBlock::iterator Term = MBB->getFirstTerminator();
845 I = BuildMI(*MBB, ++I, dl, TII->get(X86::ST_FPrr)).addReg(X86::ST0);
876 return BuildMI(*MBB, I, DebugLoc(), TII->get(X86::ST_FPrr)).addReg(STReg);
907 if (Kills && I != MBB->begin()) {
931 BuildMI(*MBB, I, DebugLoc(), TII->get(X86::LD_F0));
1235 MBB->remove(I++);
1236 I = BuildMI(*MBB, I, dl, TII->get(Opcode)).addReg(getSTReg(NotTOS));
1251 MBB->getParent()->DeleteMachineInstr(MI); // Remove the old instruction
1403 BuildMI(*MBB, I, MI->getDebugLoc(), TII->get(X86::LD_F0));
1584 BuildMI(*MBB, I, MI->getDebugLoc(), TII->get(X86::LD_F0));
1662 BuildMI(*MBB, I, MI->getDebugLoc(), TII->get(X86::CALLpcrel32))
1761 I = MBB->erase(I); // Remove the pseudo instruction
1765 if (I == MBB->begin()) {
1767 I = BuildMI(*MBB, I, DebugLoc(), TII->get(TargetOpcode::KILL));