Lines Matching defs:CatchSwitch
363 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
364 if (CatchSwitch->getParentPad() != ParentPad)
384 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
385 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
389 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
394 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow;
397 CatchSwitch->getParentPad())))
421 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
429 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
505 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
506 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
511 assert(CatchSwitch->getNumHandlers() == 1 &&
514 cast<CatchPadInst>((*CatchSwitch->handler_begin())->getFirstNonPHIIt());
524 FuncInfo.EHPadStateMap[CatchSwitch] = TryState;
530 CatchSwitch->getParentPad())))
540 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
548 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
579 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad))
580 return isa<ConstantTokenNone>(CatchSwitch->getParentPad()) &&
581 CatchSwitch->unwindsToCaller();
724 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad);
726 SmallVector<const BasicBlock *, 4> CatchBlocks(CatchSwitch->handlers());
746 assert(CatchSwitch->getNumHandlers());
747 FuncInfo.EHPadStateMap[CatchSwitch] = CatchState;
785 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) {
786 UserUnwindDest = CatchSwitch->getUnwindDest();