Lines Matching defs:CatchSwitch
277 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(CurrentPad)) {
278 if (CatchSwitch->hasUnwindDest()) {
279 UnwindDestToken = &*CatchSwitch->getUnwindDest()->getFirstNonPHIIt();
287 for (auto HI = CatchSwitch->handler_begin(),
288 HE = CatchSwitch->handler_end();
523 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(UselessPad)) {
524 assert(CatchSwitch->getUnwindDest() == nullptr && "Expected useless pad");
525 for (BasicBlock *HandlerBlock : CatchSwitch->handlers()) {
732 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) {
733 if (CatchSwitch->unwindsToCaller()) {
736 dyn_cast<Instruction>(CatchSwitch->getParentPad())) {
759 CatchSwitch->getParentPad(), UnwindDest,
760 CatchSwitch->getNumHandlers(), CatchSwitch->getName(),
761 CatchSwitch->getIterator());
762 for (BasicBlock *PadBB : CatchSwitch->handlers())
3063 if (auto *CatchSwitch = dyn_cast<CatchSwitchInst>(I)) {
3064 if (isa<ConstantTokenNone>(CatchSwitch->getParentPad()))
3065 CatchSwitch->setParentPad(CallSiteEHPad);