Home
last modified time | relevance | path

Searched refs:TopMBB (Results 1 – 4 of 4) sorted by relevance

/external/llvm/lib/CodeGen/
DMachineLoopInfo.cpp51 MachineBasicBlock *TopMBB = getHeader(); in getTopBlock() local
52 MachineFunction::iterator Begin = TopMBB->getParent()->begin(); in getTopBlock()
53 if (TopMBB->getIterator() != Begin) { in getTopBlock()
54 MachineBasicBlock *PriorMBB = &*std::prev(TopMBB->getIterator()); in getTopBlock()
56 TopMBB = PriorMBB; in getTopBlock()
57 if (TopMBB->getIterator() == Begin) in getTopBlock()
59 PriorMBB = &*std::prev(TopMBB->getIterator()); in getTopBlock()
62 return TopMBB; in getTopBlock()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineLoopInfo.cpp54 MachineBasicBlock *TopMBB = getHeader(); in getTopBlock() local
55 MachineFunction::iterator Begin = TopMBB->getParent()->begin(); in getTopBlock()
56 if (TopMBB != Begin) { in getTopBlock()
57 MachineBasicBlock *PriorMBB = prior(MachineFunction::iterator(TopMBB)); in getTopBlock()
59 TopMBB = PriorMBB; in getTopBlock()
60 if (TopMBB == Begin) break; in getTopBlock()
61 PriorMBB = prior(MachineFunction::iterator(TopMBB)); in getTopBlock()
64 return TopMBB; in getTopBlock()
DCodePlacementOpt.cpp157 MachineBasicBlock *TopMBB = L->getTopBlock(); in EliminateUnconditionalJumpsToTop() local
161 if (TopMBB == MF.begin() || in EliminateUnconditionalJumpsToTop()
162 HasAnalyzableTerminator(prior(MachineFunction::iterator(TopMBB)))) { in EliminateUnconditionalJumpsToTop()
164 for (MachineBasicBlock::pred_iterator PI = TopMBB->pred_begin(), in EliminateUnconditionalJumpsToTop()
165 PE = TopMBB->pred_end(); PI != PE; ++PI) { in EliminateUnconditionalJumpsToTop()
167 if (Pred == TopMBB) continue; in EliminateUnconditionalJumpsToTop()
200 if (Prior == MachineFunction::iterator(TopMBB)) { in EliminateUnconditionalJumpsToTop()
221 Splice(MF, TopMBB, Begin, End); in EliminateUnconditionalJumpsToTop()
224 TopMBB = L->getTopBlock(); in EliminateUnconditionalJumpsToTop()
252 MachineBasicBlock *TopMBB = L->getTopBlock(); in MoveDiscontiguousLoopBlocks() local
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp535 MachineBasicBlock *TopMBB = L->getTopBlock(); in getLoopTripCount() local
536 MachineBasicBlock::pred_iterator PI = TopMBB->pred_begin(); in getLoopTripCount()
537 assert(PI != TopMBB->pred_end() && in getLoopTripCount()
540 if (PI == TopMBB->pred_end()) // dead loop? in getLoopTripCount()
543 if (PI != TopMBB->pred_end()) // multiple backedges? in getLoopTripCount()