Lines Matching refs:EHPad
183 static Value *getParentPad(Value *EHPad) { in getParentPad() argument
184 if (auto *FPI = dyn_cast<FuncletPadInst>(EHPad)) in getParentPad()
186 return cast<CatchSwitchInst>(EHPad)->getParentPad(); in getParentPad()
193 static Value *getUnwindDestTokenHelper(Instruction *EHPad, in getUnwindDestTokenHelper() argument
195 SmallVector<Instruction *, 8> Worklist(1, EHPad); in getUnwindDestTokenHelper()
314 ExitedOriginalPad |= (ExitedPad == EHPad); in getUnwindDestTokenHelper()
344 static Value *getUnwindDestToken(Instruction *EHPad, in getUnwindDestToken() argument
349 if (auto *CPI = dyn_cast<CatchPadInst>(EHPad)) in getUnwindDestToken()
350 EHPad = CPI->getCatchSwitch(); in getUnwindDestToken()
353 auto Memo = MemoMap.find(EHPad); in getUnwindDestToken()
358 Value *UnwindDestToken = getUnwindDestTokenHelper(EHPad, MemoMap); in getUnwindDestToken()
359 assert((UnwindDestToken == nullptr) != (MemoMap.count(EHPad) != 0)); in getUnwindDestToken()
368 MemoMap[EHPad] = nullptr; in getUnwindDestToken()
369 Instruction *LastUselessPad = EHPad; in getUnwindDestToken()
371 for (AncestorToken = getParentPad(EHPad); in getUnwindDestToken()