Lines Matching refs:Fn
45 bool InsertUnwindResumeCalls(Function &Fn);
48 pruneUnreachableResumes(Function &Fn,
65 bool runOnFunction(Function &Fn) override;
140 Function &Fn, SmallVectorImpl<ResumeInst *> &Resumes, in pruneUnreachableResumes() argument
159 getAnalysis<TargetTransformInfoWrapperPass>().getTTI(Fn); in pruneUnreachableResumes()
160 LLVMContext &Ctx = Fn.getContext(); in pruneUnreachableResumes()
181 bool DwarfEHPrepare::InsertUnwindResumeCalls(Function &Fn) { in InsertUnwindResumeCalls() argument
184 for (BasicBlock &BB : Fn) { in InsertUnwindResumeCalls()
196 EHPersonality Pers = classifyEHPersonality(Fn.getPersonalityFn()); in InsertUnwindResumeCalls()
200 LLVMContext &Ctx = Fn.getContext(); in InsertUnwindResumeCalls()
202 size_t ResumesLeft = pruneUnreachableResumes(Fn, Resumes, CleanupLPads); in InsertUnwindResumeCalls()
211 RewindFunction = Fn.getParent()->getOrInsertFunction(RewindName, FTy); in InsertUnwindResumeCalls()
231 BasicBlock *UnwindBB = BasicBlock::Create(Ctx, "unwind_resume", &Fn); in InsertUnwindResumeCalls()
256 bool DwarfEHPrepare::runOnFunction(Function &Fn) { in runOnFunction() argument
259 TLI = TM->getSubtargetImpl(Fn)->getTargetLowering(); in runOnFunction()
260 bool Changed = InsertUnwindResumeCalls(Fn); in runOnFunction()