Lines Matching refs:MachineBasicBlock
64 typedef MachineBasicBlock::iterator Iter;
65 typedef MachineBasicBlock::reverse_iterator ReverseIter;
66 typedef SmallDenseMap<MachineBasicBlock*, MachineInstr*, 2> BB2BrMap;
70 CmpWeight(const MachineBasicBlock &S,
73 bool operator()(const MachineBasicBlock *Dst0,
74 const MachineBasicBlock *Dst1) const {
78 const MachineBasicBlock &Src;
95 void addLiveOut(const MachineBasicBlock &MBB,
96 const MachineBasicBlock &SuccBB);
200 bool runOnMachineBasicBlock(MachineBasicBlock &MBB);
211 bool searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End,
217 bool searchBackward(MachineBasicBlock &MBB, Iter Slot) const;
221 bool searchForward(MachineBasicBlock &MBB, Iter Slot) const;
226 bool searchSuccBBs(MachineBasicBlock &MBB, Iter Slot) const;
230 MachineBasicBlock *selectSuccBB(MachineBasicBlock &B) const;
235 getBranch(MachineBasicBlock &MBB, const MachineBasicBlock &Dst) const;
239 bool examinePred(MachineBasicBlock &Pred, const MachineBasicBlock &Succ,
272 static void addLiveInRegs(Iter Filler, MachineBasicBlock &MBB) {
342 void RegDefsUses::addLiveOut(const MachineBasicBlock &MBB,
343 const MachineBasicBlock &SuccBB) {
344 for (MachineBasicBlock::const_succ_iterator SI = MBB.succ_begin(),
347 for (MachineBasicBlock::livein_iterator LI = (*SI)->livein_begin(),
493 bool Filler::runOnMachineBasicBlock(MachineBasicBlock &MBB) {
531 bool Filler::searchRange(MachineBasicBlock &MBB, IterTy Begin, IterTy End,
555 bool Filler::searchBackward(MachineBasicBlock &MBB, Iter Slot) const {
575 bool Filler::searchForward(MachineBasicBlock &MBB, Iter Slot) const {
596 bool Filler::searchSuccBBs(MachineBasicBlock &MBB, Iter Slot) const {
600 MachineBasicBlock *SuccBB = selectSuccBB(MBB);
612 for (MachineBasicBlock::pred_iterator PI = SuccBB->pred_begin(),
640 MachineBasicBlock *Filler::selectSuccBB(MachineBasicBlock &B) const {
646 MachineBasicBlock *S = *std::max_element(B.succ_begin(), B.succ_end(), Cmp);
651 Filler::getBranch(MachineBasicBlock &MBB, const MachineBasicBlock &Dst) const {
654 MachineBasicBlock *TrueBB = 0, *FalseBB = 0;
686 bool Filler::examinePred(MachineBasicBlock &Pred, const MachineBasicBlock &Succ,