Lines Matching refs:ACS
434 AbstractCallSite ACS(U); in getAssociatedArgument() local
435 assert(ACS && ACS.isCallbackCall()); in getAssociatedArgument()
436 if (!ACS.getCalledFunction()) in getAssociatedArgument()
439 for (unsigned u = 0, e = ACS.getNumArgOperands(); u < e; u++) { in getAssociatedArgument()
443 if (ACS.getCallArgOperandNo(u) != ArgNo) in getAssociatedArgument()
446 assert(ACS.getCalledFunction()->arg_size() > u && in getAssociatedArgument()
452 CBCandidateArg = ACS.getCalledFunction()->getArg(u); in getAssociatedArgument()
1130 AbstractCallSite ACS(&U); in checkForAllCallSites() local
1131 if (!ACS) { in checkForAllCallSites()
1142 ACS.isCallbackCall() ? &ACS.getCalleeUseForCallback() : &U; in checkForAllCallSites()
1143 if (!ACS.isCallee(EffectiveUse)) { in checkForAllCallSites()
1154 assert(&Fn == ACS.getCalledFunction() && "Expected known callee"); in checkForAllCallSites()
1156 std::min(size_t(ACS.getNumArgOperands()), Fn.arg_size()); in checkForAllCallSites()
1158 Value *CSArgOp = ACS.getCallArgOperand(u); in checkForAllCallSites()
1164 << *ACS.getCallArgOperand(u)->getType() << "\n"); in checkForAllCallSites()
1169 if (Pred(ACS)) in checkForAllCallSites()
1173 << *ACS.getInstruction() << "\n"); in checkForAllCallSites()
1558 [&](AbstractCallSite ACS) { in identifyDeadInternalFunctions() argument
1559 Function *Callee = ACS.getInstruction()->getFunction(); in identifyDeadInternalFunctions()
2018 auto CallSiteCanBeChanged = [](AbstractCallSite ACS) { in isValidFunctionSignatureRewrite() argument
2022 if (!ACS.getCalledFunction() || in isValidFunctionSignatureRewrite()
2023 ACS.getInstruction()->getType() != in isValidFunctionSignatureRewrite()
2024 ACS.getCalledFunction()->getReturnType()) in isValidFunctionSignatureRewrite()
2027 return !ACS.isCallbackCall() && !ACS.getInstruction()->isMustTailCall(); in isValidFunctionSignatureRewrite()
2213 auto CallSiteReplacementCreator = [&](AbstractCallSite ACS) { in rewriteFunctionSignatures() argument
2214 CallBase *OldCB = cast<CallBase>(ACS.getInstruction()); in rewriteFunctionSignatures()
2226 ARI->ACSRepairCB(*ARI, ACS, NewArgOperands); in rewriteFunctionSignatures()
2235 NewArgOperands.push_back(ACS.getCallArgOperand(OldArgNum)); in rewriteFunctionSignatures()