Lines Matching defs:ACS
786 auto CheckCallSite = [&](AbstractCallSite ACS) {
787 CallBase *CB = ACS.getInstruction();
1014 AbstractCallSite ACS(U);
1015 assert(ACS && ACS.isCallbackCall());
1016 if (!ACS.getCalledFunction())
1019 for (unsigned u = 0, e = ACS.getNumArgOperands(); u < e; u++) {
1023 if (ACS.getCallArgOperandNo(u) != ArgNo)
1026 assert(ACS.getCalledFunction()->arg_size() > u &&
1027 "ACS mapped into var-args arguments!");
1032 CBCandidateArg = ACS.getCalledFunction()->getArg(u);
1926 AbstractCallSite ACS(&U);
1927 if (!ACS) {
1938 ACS.isCallbackCall() ? &ACS.getCalleeUseForCallback() : &U;
1939 if (!ACS.isCallee(EffectiveUse)) {
1954 assert(&Fn == ACS.getCalledFunction() && "Expected known callee");
1956 std::min(size_t(ACS.getNumArgOperands()), Fn.arg_size());
1958 Value *CSArgOp = ACS.getCallArgOperand(u);
1964 << *ACS.getCallArgOperand(u)->getType() << "\n");
1969 if (Pred(ACS))
1973 << *ACS.getInstruction() << "\n");
2377 [&](AbstractCallSite ACS) {
2378 Function *Callee = ACS.getInstruction()->getFunction();
2852 auto CallSiteCanBeChanged = [Fn](AbstractCallSite ACS) {
2856 if (!ACS.getCalledFunction() ||
2857 ACS.getInstruction()->getType() !=
2858 ACS.getCalledFunction()->getReturnType())
2860 if (cast<CallBase>(ACS.getInstruction())->getCalledOperand()->getType() !=
2863 if (ACS.getNumArgOperands() != Fn->arg_size())
2866 return !ACS.isCallbackCall() && !ACS.getInstruction()->isMustTailCall();
3070 auto CallSiteReplacementCreator = [&](AbstractCallSite ACS) {
3071 CallBase *OldCB = cast<CallBase>(ACS.getInstruction());
3083 ARI->ACSRepairCB(*ARI, ACS, NewArgOperands);
3086 "ACS repair callback did not provide as many operand as new "
3088 // TODO: Exose the attribute set to the ACS repair callback
3092 NewArgOperands.push_back(ACS.getCallArgOperand(OldArgNum));