Lines Matching refs:ACS

612     auto CheckCallSite = [&](AbstractCallSite ACS) {  in isPotentiallyReachable()  argument
613 CallBase *CB = ACS.getInstruction(); in isPotentiallyReachable()
728 AbstractCallSite ACS(U); in getAssociatedArgument() local
729 assert(ACS && ACS.isCallbackCall()); in getAssociatedArgument()
730 if (!ACS.getCalledFunction()) in getAssociatedArgument()
733 for (unsigned u = 0, e = ACS.getNumArgOperands(); u < e; u++) { in getAssociatedArgument()
737 if (ACS.getCallArgOperandNo(u) != ArgNo) in getAssociatedArgument()
740 assert(ACS.getCalledFunction()->arg_size() > u && in getAssociatedArgument()
746 CBCandidateArg = ACS.getCalledFunction()->getArg(u); in getAssociatedArgument()
1423 auto CallSitePred = [&](AbstractCallSite ACS) { in checkForAllUses() argument
1424 return AddUsers(*ACS.getInstruction(), U); in checkForAllUses()
1498 AbstractCallSite ACS(&U); in checkForAllCallSites() local
1499 if (!ACS) { in checkForAllCallSites()
1510 ACS.isCallbackCall() ? &ACS.getCalleeUseForCallback() : &U; in checkForAllCallSites()
1511 if (!ACS.isCallee(EffectiveUse)) { in checkForAllCallSites()
1526 assert(&Fn == ACS.getCalledFunction() && "Expected known callee"); in checkForAllCallSites()
1528 std::min(size_t(ACS.getNumArgOperands()), Fn.arg_size()); in checkForAllCallSites()
1530 Value *CSArgOp = ACS.getCallArgOperand(u); in checkForAllCallSites()
1536 << *ACS.getCallArgOperand(u)->getType() << "\n"); in checkForAllCallSites()
1541 if (Pred(ACS)) in checkForAllCallSites()
1545 << *ACS.getInstruction() << "\n"); in checkForAllCallSites()
1958 [&](AbstractCallSite ACS) { in identifyDeadInternalFunctions() argument
1959 Function *Callee = ACS.getInstruction()->getFunction(); in identifyDeadInternalFunctions()
2428 auto CallSiteCanBeChanged = [Fn](AbstractCallSite ACS) { in isValidFunctionSignatureRewrite() argument
2432 if (!ACS.getCalledFunction() || in isValidFunctionSignatureRewrite()
2433 ACS.getInstruction()->getType() != in isValidFunctionSignatureRewrite()
2434 ACS.getCalledFunction()->getReturnType()) in isValidFunctionSignatureRewrite()
2436 if (ACS.getCalledOperand()->getType() != Fn->getType()) in isValidFunctionSignatureRewrite()
2439 return !ACS.isCallbackCall() && !ACS.getInstruction()->isMustTailCall(); in isValidFunctionSignatureRewrite()
2628 auto CallSiteReplacementCreator = [&](AbstractCallSite ACS) { in rewriteFunctionSignatures() argument
2629 CallBase *OldCB = cast<CallBase>(ACS.getInstruction()); in rewriteFunctionSignatures()
2641 ARI->ACSRepairCB(*ARI, ACS, NewArgOperands); in rewriteFunctionSignatures()
2650 NewArgOperands.push_back(ACS.getCallArgOperand(OldArgNum)); in rewriteFunctionSignatures()