Lines Matching refs:CI
42 static bool replaceWithTLIFunction(CallInst &CI, const StringRef TLIName) { in replaceWithTLIFunction() argument
43 Module *M = CI.getModule(); in replaceWithTLIFunction()
45 Function *OldFunc = CI.getCalledFunction(); in replaceWithTLIFunction()
72 IRBuilder<> IRBuilder(&CI); in replaceWithTLIFunction()
73 SmallVector<Value *> Args(CI.arg_operands()); in replaceWithTLIFunction()
76 CI.getOperandBundlesAsDefs(OpBundles); in replaceWithTLIFunction()
80 CI.replaceAllUsesWith(Replacement); in replaceWithTLIFunction()
83 Replacement->copyFastMathFlags(&CI); in replaceWithTLIFunction()
94 CallInst &CI) { in replaceWithCallToVeclib() argument
95 if (!CI.getCalledFunction()) { in replaceWithCallToVeclib()
99 auto IntrinsicID = CI.getCalledFunction()->getIntrinsicID(); in replaceWithCallToVeclib()
109 for (auto Arg : enumerate(CI.arg_operands())) { in replaceWithCallToVeclib()
145 ScalarName = Intrinsic::getName(IntrinsicID, ScalarTypes, CI.getModule()); in replaceWithCallToVeclib()
171 return replaceWithTLIFunction(CI, TLIName); in replaceWithCallToVeclib()
181 if (auto *CI = dyn_cast<CallInst>(&I)) { in runImpl() local
182 if (replaceWithCallToVeclib(TLI, *CI)) { in runImpl()
183 ReplacedCalls.push_back(CI); in runImpl()
190 for (auto *CI : ReplacedCalls) { in runImpl() local
191 CI->eraseFromParent(); in runImpl()