Lines Matching defs:Call
632 Instruction *Call = CS.getInstruction();
661 Call);
663 Args.push_back(new LoadInst(Idx, Idx->getName()+".val", Call));
690 V = GetElementPtrInst::Create(V, Ops, V->getName()+".idx", Call);
696 LoadInst *newLoad = new LoadInst(V, V->getName()+".val", Call);
718 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) {
720 Args, "", Call);
724 New = CallInst::Create(NF, Args, "", Call);
727 if (cast<CallInst>(Call)->isTailCall())
735 AA.replaceWithNewValue(Call, New);
738 CallGraphNode *CalleeNode = CG[Call->getParent()->getParent()];
739 CalleeNode->replaceCallEdge(Call, New, NF_CGN);
741 if (!Call->use_empty()) {
742 Call->replaceAllUsesWith(New);
743 New->takeName(Call);
748 Call->eraseFromParent();