Lines Matching defs:CatchSwitch
361 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(TI)) {
362 if (CatchSwitch->getParentPad() != ParentPad)
382 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
383 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
387 for (const BasicBlock *CatchPadBB : CatchSwitch->handlers()) {
392 FuncInfo.EHPadStateMap[CatchSwitch] = TryLow;
395 CatchSwitch->getParentPad())))
419 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
427 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
503 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(FirstNonPHI)) {
504 assert(FuncInfo.EHPadStateMap.count(CatchSwitch) == 0 &&
509 assert(CatchSwitch->getNumHandlers() == 1 &&
512 cast<CatchPadInst>((*CatchSwitch->handler_begin())->getFirstNonPHI());
522 FuncInfo.EHPadStateMap[CatchSwitch] = TryState;
528 CatchSwitch->getParentPad())))
538 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
546 if (!UnwindDest || UnwindDest == CatchSwitch->getUnwindDest())
577 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(EHPad))
578 return isa<ConstantTokenNone>(CatchSwitch->getParentPad()) &&
579 CatchSwitch->unwindsToCaller();
722 const auto *CatchSwitch = cast<CatchSwitchInst>(Pad);
724 SmallVector<const BasicBlock *, 4> CatchBlocks(CatchSwitch->handlers());
744 assert(CatchSwitch->getNumHandlers());
745 FuncInfo.EHPadStateMap[CatchSwitch] = CatchState;
783 } else if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(U)) {
784 UserUnwindDest = CatchSwitch->getUnwindDest();