Lines Matching refs:CallInst
197 /// visitCallInst - CallInst simplification. This mostly only handles folding
201 Instruction *InstCombiner::visitCallInst(CallInst &CI) {
728 if (CallInst *BCI = dyn_cast<CallInst>(BI)) {
790 Instruction *InstCombiner::tryOptimizeCall(CallInst *CI, const DataLayout *TD) {
908 if (isa<CallInst>(OldCall))
968 if (CallInst *CI = dyn_cast<CallInst>(CS.getInstruction())) {
1193 CallInst *CI = cast<CallInst>(Caller);
1197 cast<CallInst>(NC)->setTailCall();
1198 cast<CallInst>(NC)->setCallingConv(CI->getCallingConv());
1199 cast<CallInst>(NC)->setAttributes(NewCallerPAL);
1370 NewCaller = CallInst::Create(NewCallee, NewArgs);
1371 if (cast<CallInst>(Caller)->isTailCall())
1372 cast<CallInst>(NewCaller)->setTailCall();
1373 cast<CallInst>(NewCaller)->
1374 setCallingConv(cast<CallInst>(Caller)->getCallingConv());
1375 cast<CallInst>(NewCaller)->setAttributes(NewPAL);