Lines Matching refs:ACS

787     auto CheckCallSite = [&](AbstractCallSite ACS) {  in isPotentiallyReachable()  argument
788 CallBase *CB = ACS.getInstruction(); in isPotentiallyReachable()
1015 AbstractCallSite ACS(U); in getAssociatedArgument() local
1016 assert(ACS && ACS.isCallbackCall()); in getAssociatedArgument()
1017 if (!ACS.getCalledFunction()) in getAssociatedArgument()
1020 for (unsigned u = 0, e = ACS.getNumArgOperands(); u < e; u++) { in getAssociatedArgument()
1024 if (ACS.getCallArgOperandNo(u) != ArgNo) in getAssociatedArgument()
1027 assert(ACS.getCalledFunction()->arg_size() > u && in getAssociatedArgument()
1033 CBCandidateArg = ACS.getCalledFunction()->getArg(u); in getAssociatedArgument()
1857 auto CallSitePred = [&](AbstractCallSite ACS) { in checkForAllUses() argument
1858 return AddUsers(*ACS.getInstruction(), U); in checkForAllUses()
1939 AbstractCallSite ACS(&U); in checkForAllCallSites() local
1940 if (!ACS) { in checkForAllCallSites()
1951 ACS.isCallbackCall() ? &ACS.getCalleeUseForCallback() : &U; in checkForAllCallSites()
1952 if (!ACS.isCallee(EffectiveUse)) { in checkForAllCallSites()
1967 assert(&Fn == ACS.getCalledFunction() && "Expected known callee"); in checkForAllCallSites()
1969 std::min(size_t(ACS.getNumArgOperands()), Fn.arg_size()); in checkForAllCallSites()
1971 Value *CSArgOp = ACS.getCallArgOperand(u); in checkForAllCallSites()
1977 << *ACS.getCallArgOperand(u)->getType() << "\n"); in checkForAllCallSites()
1982 if (Pred(ACS)) in checkForAllCallSites()
1986 << *ACS.getInstruction() << "\n"); in checkForAllCallSites()
2391 [&](AbstractCallSite ACS) { in identifyDeadInternalFunctions() argument
2392 Function *Callee = ACS.getInstruction()->getFunction(); in identifyDeadInternalFunctions()
2865 auto CallSiteCanBeChanged = [Fn](AbstractCallSite ACS) { in isValidFunctionSignatureRewrite() argument
2869 if (!ACS.getCalledFunction() || in isValidFunctionSignatureRewrite()
2870 ACS.getInstruction()->getType() != in isValidFunctionSignatureRewrite()
2871 ACS.getCalledFunction()->getReturnType()) in isValidFunctionSignatureRewrite()
2873 if (cast<CallBase>(ACS.getInstruction())->getCalledOperand()->getType() != in isValidFunctionSignatureRewrite()
2876 if (ACS.getNumArgOperands() != Fn->arg_size()) in isValidFunctionSignatureRewrite()
2879 return !ACS.isCallbackCall() && !ACS.getInstruction()->isMustTailCall(); in isValidFunctionSignatureRewrite()
3081 auto CallSiteReplacementCreator = [&](AbstractCallSite ACS) { in rewriteFunctionSignatures() argument
3082 CallBase *OldCB = cast<CallBase>(ACS.getInstruction()); in rewriteFunctionSignatures()
3094 ARI->ACSRepairCB(*ARI, ACS, NewArgOperands); in rewriteFunctionSignatures()
3103 NewArgOperands.push_back(ACS.getCallArgOperand(OldArgNum)); in rewriteFunctionSignatures()