Lines Matching refs:MachineFunction
41 virtual bool runOnMachineFunction(MachineFunction &MF);
55 void Splice(MachineFunction &MF,
56 MachineFunction::iterator InsertPt,
57 MachineFunction::iterator Begin,
58 MachineFunction::iterator End);
59 bool EliminateUnconditionalJumpsToTop(MachineFunction &MF,
61 bool MoveDiscontiguousLoopBlocks(MachineFunction &MF,
63 bool OptimizeIntraLoopEdgesInLoopNest(MachineFunction &MF, MachineLoop *L);
64 bool OptimizeIntraLoopEdges(MachineFunction &MF);
65 bool AlignLoops(MachineFunction &MF);
66 bool AlignLoop(MachineFunction &MF, MachineLoop *L, unsigned Align);
133 void CodePlacementOpt::Splice(MachineFunction &MF, in Splice()
134 MachineFunction::iterator InsertPt, in Splice()
135 MachineFunction::iterator Begin, in Splice()
136 MachineFunction::iterator End) { in Splice()
139 MachineFunction::iterator OldBeginPrior = prior(Begin); in Splice()
140 MachineFunction::iterator OldEndPrior = prior(End); in Splice()
154 bool CodePlacementOpt::EliminateUnconditionalJumpsToTop(MachineFunction &MF, in EliminateUnconditionalJumpsToTop()
162 HasAnalyzableTerminator(prior(MachineFunction::iterator(TopMBB)))) { in EliminateUnconditionalJumpsToTop()
177 if (!HasAnalyzableTerminator(prior(MachineFunction::iterator(Pred)))) in EliminateUnconditionalJumpsToTop()
187 MachineFunction::iterator Begin = Pred; in EliminateUnconditionalJumpsToTop()
188 MachineFunction::iterator End = llvm::next(Begin); in EliminateUnconditionalJumpsToTop()
190 MachineFunction::iterator Prior = prior(Begin); in EliminateUnconditionalJumpsToTop()
200 if (Prior == MachineFunction::iterator(TopMBB)) { in EliminateUnconditionalJumpsToTop()
212 if (!HasAnalyzableTerminator(prior(MachineFunction::iterator(Prior)))) in EliminateUnconditionalJumpsToTop()
249 bool CodePlacementOpt::MoveDiscontiguousLoopBlocks(MachineFunction &MF, in MoveDiscontiguousLoopBlocks()
260 MachineFunction::iterator InsertPt = in MoveDiscontiguousLoopBlocks()
261 llvm::next(MachineFunction::iterator(BotMBB)); in MoveDiscontiguousLoopBlocks()
264 !HasFallthrough(prior(MachineFunction::iterator(TopMBB))) && in MoveDiscontiguousLoopBlocks()
273 for (MachineFunction::iterator I = TopMBB, in MoveDiscontiguousLoopBlocks()
274 E = llvm::next(MachineFunction::iterator(BotMBB)); I != E; ++I) in MoveDiscontiguousLoopBlocks()
287 if (!HasAnalyzableTerminator(prior(MachineFunction::iterator(BB)))) in MoveDiscontiguousLoopBlocks()
293 L->contains(prior(MachineFunction::iterator(BB)))) in MoveDiscontiguousLoopBlocks()
308 MachineFunction::iterator Begin = BB; in MoveDiscontiguousLoopBlocks()
309 MachineFunction::iterator End = llvm::next(MachineFunction::iterator(BB)); in MoveDiscontiguousLoopBlocks()
342 bool CodePlacementOpt::OptimizeIntraLoopEdgesInLoopNest(MachineFunction &MF, in OptimizeIntraLoopEdgesInLoopNest()
360 bool CodePlacementOpt::OptimizeIntraLoopEdges(MachineFunction &MF) { in OptimizeIntraLoopEdges()
377 bool CodePlacementOpt::AlignLoops(MachineFunction &MF) { in AlignLoops()
397 bool CodePlacementOpt::AlignLoop(MachineFunction &MF, MachineLoop *L, in AlignLoop()
412 bool CodePlacementOpt::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction()