Lines Matching refs:RI
46 Value *GetExceptionObject(ResumeInst *RI);
100 Value *DwarfEHPrepare::GetExceptionObject(ResumeInst *RI) { in GetExceptionObject() argument
101 Value *V = RI->getOperand(0); in GetExceptionObject()
121 ExnObj = ExtractValueInst::Create(RI->getOperand(0), 0, "exn.obj", RI); in GetExceptionObject()
123 RI->eraseFromParent(); in GetExceptionObject()
144 for (auto *RI : Resumes) { in pruneUnreachableResumes() local
146 if (isPotentiallyReachable(LP, RI, DT)) { in pruneUnreachableResumes()
165 ResumeInst *RI = Resumes[I]; in pruneUnreachableResumes() local
167 Resumes[ResumesLeft++] = RI; in pruneUnreachableResumes()
169 BasicBlock *BB = RI->getParent(); in pruneUnreachableResumes()
170 new UnreachableInst(Ctx, RI); in pruneUnreachableResumes()
171 RI->eraseFromParent(); in pruneUnreachableResumes()
185 if (auto *RI = dyn_cast<ResumeInst>(BB.getTerminator())) in InsertUnwindResumeCalls() local
186 Resumes.push_back(RI); in InsertUnwindResumeCalls()
218 ResumeInst *RI = Resumes.front(); in InsertUnwindResumeCalls() local
219 BasicBlock *UnwindBB = RI->getParent(); in InsertUnwindResumeCalls()
220 Value *ExnObj = GetExceptionObject(RI); in InsertUnwindResumeCalls()
237 for (ResumeInst *RI : Resumes) { in InsertUnwindResumeCalls()
238 BasicBlock *Parent = RI->getParent(); in InsertUnwindResumeCalls()
241 Value *ExnObj = GetExceptionObject(RI); in InsertUnwindResumeCalls()