Searched refs:TermInst (Results 1 – 8 of 8) sorted by relevance
111 Term TermInst;116 return idx < TermInst->getNumSuccessors(); in index_is_valid()134 it.TermInst->setSuccessor(it.idx, r);143 explicit inline SuccIterator(Term T) : TermInst(T), idx(0) {} in SuccIterator()145 inline SuccIterator(Term T, bool) : TermInst(T) { in SuccIterator()146 if (TermInst) in SuccIterator()147 idx = TermInst->getNumSuccessors(); in SuccIterator()165 inline reference operator*() const { return TermInst->getSuccessor(idx); }190 assert(TermInst == x.TermInst &&196 assert(TermInst == x.TermInst &&[all …]
784 const auto *TermInst = PredBB->getTerminator(); in tryToSpeculatePHIs() local785 if (isa<IndirectBrInst>(TermInst) || in tryToSpeculatePHIs()786 isa<InvokeInst>(TermInst) || in tryToSpeculatePHIs()787 isa<CallBrInst>(TermInst)) { in tryToSpeculatePHIs()
464 auto *TermInst = IncomingBB->getTerminator(); in rewriteFirstIterationLoopExitValues() local467 if (auto *BI = dyn_cast<BranchInst>(TermInst)) { in rewriteFirstIterationLoopExitValues()471 } else if (auto *SI = dyn_cast<SwitchInst>(TermInst)) in rewriteFirstIterationLoopExitValues()
780 const auto *TermInst = PredBB->getTerminator(); in tryToSpeculatePHIs() local781 if (isa<IndirectBrInst>(TermInst) || in tryToSpeculatePHIs()782 isa<InvokeInst>(TermInst) || in tryToSpeculatePHIs()783 isa<CallBrInst>(TermInst)) { in tryToSpeculatePHIs()
776 auto *TermInst = IncomingBB->getTerminator(); in rewriteFirstIterationLoopExitValues() local779 if (auto *BI = dyn_cast<BranchInst>(TermInst)) { in rewriteFirstIterationLoopExitValues()783 } else if (auto *SI = dyn_cast<SwitchInst>(TermInst)) in rewriteFirstIterationLoopExitValues()
335 auto *TermInst = BB.getTerminator(); in stripDebugInfo() local336 if (!TermInst) in stripDebugInfo()339 if (auto *LoopID = TermInst->getMetadata(LLVMContext::MD_loop)) { in stripDebugInfo()344 TermInst->setMetadata(LLVMContext::MD_loop, NewLoopID); in stripDebugInfo()
343 auto *TermInst = BB.getTerminator(); in stripDebugInfo() local344 if (!TermInst) in stripDebugInfo()347 if (auto *LoopID = TermInst->getMetadata(LLVMContext::MD_loop)) { in stripDebugInfo()352 TermInst->setMetadata(LLVMContext::MD_loop, NewLoopID); in stripDebugInfo()
696 auto *TermInst = IncomingBB->getTerminator(); in rewriteFirstIterationLoopExitValues() local699 if (auto *BI = dyn_cast<BranchInst>(TermInst)) { in rewriteFirstIterationLoopExitValues()703 } else if (auto *SI = dyn_cast<SwitchInst>(TermInst)) in rewriteFirstIterationLoopExitValues()