Lines Matching defs:CI
57 bool handlePowSpecialCases(CallInst *CI, Function &Func, Module &M);
58 bool lowerMASSVCall(CallInst *CI, Function &Func, Module &M,
107 bool PPCLowerMASSVEntries::handlePowSpecialCases(CallInst *CI, Function &Func,
112 if (Constant *Exp = dyn_cast<Constant>(CI->getArgOperand(1)))
116 if (!CI->hasNoInfs() || !CI->hasApproxFunc())
122 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros())
125 CI->setCalledFunction(
126 Intrinsic::getDeclaration(&M, Intrinsic::pow, CI->getType()));
136 bool PPCLowerMASSVEntries::lowerMASSVCall(CallInst *CI, Function &Func,
139 if (CI->use_empty())
143 if (handlePowSpecialCases(CI, Func, M))
150 CI->setCalledFunction(FCache);
178 auto *CI = dyn_cast<CallInst>(User);
179 if (!CI)
182 Subtarget = &TM.getSubtarget<PPCSubtarget>(*CI->getParent()->getParent());
183 Changed |= lowerMASSVCall(CI, Func, M, Subtarget);