Lines Matching refs:CS
178 CallSite CS(*I++); in DeleteDeadVarargs() local
179 if (!CS) in DeleteDeadVarargs()
181 Instruction *Call = CS.getInstruction(); in DeleteDeadVarargs()
184 Args.assign(CS.arg_begin(), CS.arg_begin() + NumArgs); in DeleteDeadVarargs()
187 AttributeList PAL = CS.getAttributes(); in DeleteDeadVarargs()
197 CS.getOperandBundlesAsDefs(OpBundles); in DeleteDeadVarargs()
208 NewCS.setCallingConv(CS.getCallingConv()); in DeleteDeadVarargs()
307 CallSite CS(U.getUser()); in RemoveDeadArgumentsFromCallers() local
308 if (!CS || !CS.isCallee(&U)) in RemoveDeadArgumentsFromCallers()
315 Value *Arg = CS.getArgument(ArgNo); in RemoveDeadArgumentsFromCallers()
316 CS.setArgument(ArgNo, UndefValue::get(Arg->getType())); in RemoveDeadArgumentsFromCallers()
427 if (auto CS = ImmutableCallSite(V)) { in SurveyUse() local
428 const Function *F = CS.getCalledFunction(); in SurveyUse()
433 if (CS.isBundleOperand(U)) in SurveyUse()
440 unsigned ArgNo = CS.getArgumentNo(U); in SurveyUse()
446 assert(CS.getArgument(ArgNo) in SurveyUse()
447 == CS->getOperand(U->getOperandNo()) in SurveyUse()
558 ImmutableCallSite CS(U.getUser()); in SurveyFunction() local
559 if (!CS || !CS.isCallee(&U)) { in SurveyFunction()
566 if (CS.isMustTailCall()) in SurveyFunction()
570 const Instruction *TheCall = CS.getInstruction(); in SurveyFunction()
879 CallSite CS(F->user_back()); in RemoveDeadStuffFromFunction() local
880 Instruction *Call = CS.getInstruction(); in RemoveDeadStuffFromFunction()
883 const AttributeList &CallPAL = CS.getAttributes(); in RemoveDeadStuffFromFunction()
893 CallSite::arg_iterator I = CS.arg_begin(); in RemoveDeadStuffFromFunction()
918 for (CallSite::arg_iterator E = CS.arg_end(); I != E; ++I, ++i) { in RemoveDeadStuffFromFunction()
935 CS.getOperandBundlesAsDefs(OpBundles); in RemoveDeadStuffFromFunction()
946 NewCS.setCallingConv(CS.getCallingConv()); in RemoveDeadStuffFromFunction()