Lines Matching defs:ACS
787 auto CheckCallSite = [&](AbstractCallSite ACS) {
788 CallBase *CB = ACS.getInstruction();
1015 AbstractCallSite ACS(U);
1016 assert(ACS && ACS.isCallbackCall());
1017 if (!ACS.getCalledFunction())
1020 for (unsigned u = 0, e = ACS.getNumArgOperands(); u < e; u++) {
1024 if (ACS.getCallArgOperandNo(u) != ArgNo)
1027 assert(ACS.getCalledFunction()->arg_size() > u &&
1028 "ACS mapped into var-args arguments!");
1033 CBCandidateArg = ACS.getCalledFunction()->getArg(u);
1861 auto CallSitePred = [&](AbstractCallSite ACS) {
1862 return AddUsers(*ACS.getInstruction(), U);
1943 AbstractCallSite ACS(&U);
1944 if (!ACS) {
1955 ACS.isCallbackCall() ? &ACS.getCalleeUseForCallback() : &U;
1956 if (!ACS.isCallee(EffectiveUse)) {
1971 assert(&Fn == ACS.getCalledFunction() && "Expected known callee");
1973 std::min(size_t(ACS.getNumArgOperands()), Fn.arg_size());
1975 Value *CSArgOp = ACS.getCallArgOperand(u);
1981 << *ACS.getCallArgOperand(u)->getType() << "\n");
1986 if (Pred(ACS))
1990 << *ACS.getInstruction() << "\n");
2394 [&](AbstractCallSite ACS) {
2395 Function *Callee = ACS.getInstruction()->getFunction();
2869 auto CallSiteCanBeChanged = [Fn](AbstractCallSite ACS) {
2873 if (!ACS.getCalledFunction() ||
2874 ACS.getInstruction()->getType() !=
2875 ACS.getCalledFunction()->getReturnType())
2877 if (cast<CallBase>(ACS.getInstruction())->getCalledOperand()->getType() !=
2880 if (ACS.getNumArgOperands() != Fn->arg_size())
2883 return !ACS.isCallbackCall() && !ACS.getInstruction()->isMustTailCall();
3087 auto CallSiteReplacementCreator = [&](AbstractCallSite ACS) {
3088 CallBase *OldCB = cast<CallBase>(ACS.getInstruction());
3100 ARI->ACSRepairCB(*ARI, ACS, NewArgOperands);
3103 "ACS repair callback did not provide as many operand as new "
3105 // TODO: Exose the attribute set to the ACS repair callback
3109 NewArgOperands.push_back(ACS.getCallArgOperand(OldArgNum));