Lines Matching refs:callSite

2749     llvm::CallSite callSite(user);  in replaceUsesOfNonProtoConstant()  local
2750 if (!callSite) continue; in replaceUsesOfNonProtoConstant()
2751 if (!callSite.isCallee(&*use)) continue; in replaceUsesOfNonProtoConstant()
2755 if (callSite->getType() != newRetTy && !callSite->use_empty()) in replaceUsesOfNonProtoConstant()
2760 llvm::AttributeSet oldAttrs = callSite.getAttributes(); in replaceUsesOfNonProtoConstant()
2770 if (callSite.arg_size() < newNumArgs) continue; in replaceUsesOfNonProtoConstant()
2778 if (callSite.getArgument(argNo)->getType() != ai->getType()) { in replaceUsesOfNonProtoConstant()
2799 newArgs.append(callSite.arg_begin(), callSite.arg_begin() + argNo); in replaceUsesOfNonProtoConstant()
2802 callSite.getOperandBundlesAsDefs(newBundles); in replaceUsesOfNonProtoConstant()
2805 if (callSite.isCall()) { in replaceUsesOfNonProtoConstant()
2807 callSite.getInstruction()); in replaceUsesOfNonProtoConstant()
2809 auto *oldInvoke = cast<llvm::InvokeInst>(callSite.getInstruction()); in replaceUsesOfNonProtoConstant()
2814 callSite.getInstruction()); in replaceUsesOfNonProtoConstant()
2819 newCall->takeName(callSite.getInstruction()); in replaceUsesOfNonProtoConstant()
2822 newCall.setCallingConv(callSite.getCallingConv()); in replaceUsesOfNonProtoConstant()
2825 if (!callSite->use_empty()) in replaceUsesOfNonProtoConstant()
2826 callSite->replaceAllUsesWith(newCall.getInstruction()); in replaceUsesOfNonProtoConstant()
2829 if (callSite->getDebugLoc()) in replaceUsesOfNonProtoConstant()
2830 newCall->setDebugLoc(callSite->getDebugLoc()); in replaceUsesOfNonProtoConstant()
2832 callSite->eraseFromParent(); in replaceUsesOfNonProtoConstant()