Lines Matching refs:getTerminator

171   LPad->getTerminator()->eraseFromParent();  in splitLandingPad()
411 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in insertSjLjEHSupport()
415 } else if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { in insertSjLjEHSupport()
417 } else if (UnwindInst *UI = dyn_cast<UnwindInst>(BB->getTerminator())) { in insertSjLjEHSupport()
449 if (InvokeInst *II = dyn_cast<InvokeInst>(F.begin()->getTerminator())) { in insertSjLjEHSupport()
495 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) in insertSjLjEHSupport()
518 EntryBB->getTerminator()); in insertSjLjEHSupport()
523 EntryBB->getTerminator()); in insertSjLjEHSupport()
527 EntryBB->getTerminator()); in insertSjLjEHSupport()
532 EntryBB->getTerminator()); in insertSjLjEHSupport()
586 BasicBlock *ContBlock = EntryBB->splitBasicBlock(EntryBB->getTerminator(), in insertSjLjEHSupport()
599 EntryBB->getTerminator()); in insertSjLjEHSupport()
601 EntryBB->getTerminator()); in insertSjLjEHSupport()
602 new StoreInst(LSDA, LSDAFieldPtr, true, EntryBB->getTerminator()); in insertSjLjEHSupport()
607 EntryBB->getTerminator()); in insertSjLjEHSupport()
609 EntryBB->getTerminator()); in insertSjLjEHSupport()
615 EntryBB->getTerminator()); in insertSjLjEHSupport()
619 EntryBB->getTerminator()); in insertSjLjEHSupport()
624 EntryBB->getTerminator()); in insertSjLjEHSupport()
625 new StoreInst(Val, FramePtr, true, EntryBB->getTerminator()); in insertSjLjEHSupport()
631 EntryBB->getTerminator()); in insertSjLjEHSupport()
633 Val = CallInst::Create(StackAddrFn, "sp", EntryBB->getTerminator()); in insertSjLjEHSupport()
634 new StoreInst(Val, StackPtr, true, EntryBB->getTerminator()); in insertSjLjEHSupport()
640 EntryBB->getTerminator()); in insertSjLjEHSupport()
643 EntryBB->getTerminator()); in insertSjLjEHSupport()
647 CallInst::Create(DispatchSetupFn, DispatchVal, "", EntryBB->getTerminator()); in insertSjLjEHSupport()
650 Value *IsNormal = new ICmpInst(EntryBB->getTerminator(), in insertSjLjEHSupport()
654 EntryBB->getTerminator()->eraseFromParent(); in insertSjLjEHSupport()
662 ContBlock->getTerminator()); in insertSjLjEHSupport()
737 EntryBB->getTerminator()); in setupFunctionContext()
742 EntryBB->getTerminator()); in setupFunctionContext()
748 EntryBB->getTerminator()); in setupFunctionContext()
754 EntryBB->getTerminator()); in setupFunctionContext()
778 EntryBB->getTerminator()); in setupFunctionContext()
780 EntryBB->getTerminator()); in setupFunctionContext()
785 EntryBB->getTerminator()); in setupFunctionContext()
787 EntryBB->getTerminator()); in setupFunctionContext()
788 new StoreInst(LSDA, LSDAFieldPtr, true, EntryBB->getTerminator()); in setupFunctionContext()
922 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { in setupEntryBlockAndCallSites()
925 } else if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { in setupEntryBlockAndCallSites()
945 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
950 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
955 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
956 new StoreInst(Val, FramePtr, true, EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
961 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
963 Val = CallInst::Create(StackAddrFn, "sp", EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
964 new StoreInst(Val, StackPtr, true, EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
969 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
970 CallInst::Create(BuiltinSetjmpFn, SetjmpArg, "", EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
976 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
977 CallInst::Create(FuncCtxFn, FuncCtxArg, "", EntryBB->getTerminator()); in setupEntryBlockAndCallSites()
1008 EntryBB->getTerminator()); in setupEntryBlockAndCallSites()