Home | History | Annotate | Download | only in Utils

Lines Matching refs:TheCall

330 static Value *HandleByValArgument(Value *Arg, Instruction *TheCall,
370 Function *Caller = TheCall->getParent()->getParent();
379 Value *DestCast = new BitCastInst(NewAlloca, VoidPtrTy, "tmp", TheCall);
380 Value *SrcCast = new BitCastInst(Arg, VoidPtrTy, "tmp", TheCall);
397 TheCall).CreateCall(MemCpyFn, CallArgs);
458 Instruction *TheCall) {
459 DebugLoc TheCallDL = TheCall->getDebugLoc();
491 Instruction *TheCall = CS.getInstruction();
492 assert(TheCall->getParent() && TheCall->getParent()->getParent() &&
506 !(isa<CallInst>(TheCall) && cast<CallInst>(TheCall)->isTailCall());
512 BasicBlock *OrigBB = TheCall->getParent();
587 ActualArg = HandleByValArgument(ActualArg, TheCall, CalledFunc, IFI,
605 &InlinedFunctionInfo, IFI.TD, TheCall);
615 fixupLineNumbers(Caller, FirstNewBlock, TheCall);
736 if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall))
744 OrigBB->getInstList().splice(TheCall, FirstNewBlock->getInstList(),
751 if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall))
752 BranchInst::Create(II->getNormalDest(), TheCall);
756 if (!TheCall->use_empty()) {
758 if (TheCall == R->getReturnValue())
759 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
761 TheCall->replaceAllUsesWith(R->getReturnValue());
764 TheCall->eraseFromParent();
780 if (InvokeInst *II = dyn_cast<InvokeInst>(TheCall)) {
783 BranchInst *NewBr = BranchInst::Create(II->getNormalDest(), TheCall);
795 AfterCallBB = OrigBB->splitBasicBlock(TheCall,
822 if (!TheCall->use_empty()) {
823 PHI = PHINode::Create(RTy, Returns.size(), TheCall->getName(),
827 TheCall->replaceAllUsesWith(PHI);
851 if (!TheCall->use_empty()) {
852 if (TheCall == Returns[0]->getReturnValue())
853 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
855 TheCall->replaceAllUsesWith(Returns[0]->getReturnValue());
870 } else if (!TheCall->use_empty()) {
873 TheCall->replaceAllUsesWith(UndefValue::get(TheCall->getType()));
877 TheCall->eraseFromParent();