Lines Matching refs:CI
55 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M);
56 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
105 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func, in handlePowSpecialCases() argument
110 if (Constant *Exp = dyn_cast<Constant>(CI->getArgOperand(1))) in handlePowSpecialCases()
114 if (!CI->hasNoInfs() || !CI->hasApproxFunc()) in handlePowSpecialCases()
120 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
123 CI->setCalledFunction( in handlePowSpecialCases()
124 Intrinsic::getDeclaration(&M, Intrinsic::pow, CI->getType())); in handlePowSpecialCases()
134 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func, in lowerMASSVCall() argument
137 if (CI->use_empty()) in lowerMASSVCall()
141 if (handlePowSpecialCases(CI, Func, M)) in lowerMASSVCall()
148 CI->setCalledFunction(FCache); in lowerMASSVCall()
176 auto *CI = dyn_cast<CallInst>(User); in runOnModule() local
177 if (!CI) in runOnModule()
180 Subtarget = &TM.getSubtarget<PPCSubtarget>(*CI->getParent()->getParent()); in runOnModule()
181 Changed |= lowerMASSVCall(CI, Func, M, Subtarget); in runOnModule()