Lines Matching defs:Exn
44 void FindExnAndSelIntrinsics(BasicBlock *BB, CallInst *&Exn,
55 assert(!Exn && "Found more than one eh.exception call!");
56 Exn = CI;
64 if (Exn && Sel) return;
68 if (Exn && Sel) return;
71 FindExnAndSelIntrinsics(*I, Exn, Sel, Visited);
72 if (Exn && Sel) return;
164 CallInst *Exn = 0;
166 FindExnAndSelIntrinsics(UnwindDest, Exn, Sel, Visited);
167 assert(Exn && Sel && "Cannot find eh.exception and eh.selector calls!");
168 InvokeToIntrinsicsMap[Inst] = std::make_pair(Exn, Sel);
183 CallInst *Exn = cast<CallInst>(EHIntrinsics.first);
191 ExnSlot = new AllocaInst(ExnTy, "exn", Entry->getTerminator());
231 DeadInsts.insert(Exn);
241 CallInst *Exn = cast<CallInst>(EHIntrinsics.first);
243 BasicBlock *Parent = Exn->getParent();
248 Builder.SetInsertPoint(Parent, Exn);
249 LoadInst *LPExn = Builder.CreateLoad(ExnSelSlots.first, "exn.load");
252 Exn->replaceAllUsesWith(LPExn);