Lines Matching refs:CallInst
88 static bool callHasFloatingPointArgument(const CallInst *CI) { in callHasFloatingPointArgument()
194 Value *LibCallSimplifier::optimizeStrCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrCat()
242 Value *LibCallSimplifier::optimizeStrNCat(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCat()
284 Value *LibCallSimplifier::optimizeStrChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrChr()
329 Value *LibCallSimplifier::optimizeStrRChr(CallInst *CI, IRBuilder<> &B) { in optimizeStrRChr()
364 Value *LibCallSimplifier::optimizeStrCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrCmp()
405 Value *LibCallSimplifier::optimizeStrNCmp(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCmp()
453 Value *LibCallSimplifier::optimizeStrCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrCpy()
475 Value *LibCallSimplifier::optimizeStpCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStpCpy()
502 Value *LibCallSimplifier::optimizeStrNCpy(CallInst *CI, IRBuilder<> &B) { in optimizeStrNCpy()
543 Value *LibCallSimplifier::optimizeStrLen(CallInst *CI, IRBuilder<> &B) { in optimizeStrLen()
579 Value *LibCallSimplifier::optimizeStrPBrk(CallInst *CI, IRBuilder<> &B) { in optimizeStrPBrk()
612 Value *LibCallSimplifier::optimizeStrTo(CallInst *CI, IRBuilder<> &B) { in optimizeStrTo()
630 Value *LibCallSimplifier::optimizeStrSpn(CallInst *CI, IRBuilder<> &B) { in optimizeStrSpn()
658 Value *LibCallSimplifier::optimizeStrCSpn(CallInst *CI, IRBuilder<> &B) { in optimizeStrCSpn()
689 Value *LibCallSimplifier::optimizeStrStr(CallInst *CI, IRBuilder<> &B) { in optimizeStrStr()
750 Value *LibCallSimplifier::optimizeMemChr(CallInst *CI, IRBuilder<> &B) { in optimizeMemChr()
836 Value *LibCallSimplifier::optimizeMemCmp(CallInst *CI, IRBuilder<> &B) { in optimizeMemCmp()
909 Value *LibCallSimplifier::optimizeMemCpy(CallInst *CI, IRBuilder<> &B) { in optimizeMemCpy()
921 Value *LibCallSimplifier::optimizeMemMove(CallInst *CI, IRBuilder<> &B) { in optimizeMemMove()
933 Value *LibCallSimplifier::optimizeMemSet(CallInst *CI, IRBuilder<> &B) { in optimizeMemSet()
974 Value *LibCallSimplifier::optimizeUnaryDoubleFP(CallInst *CI, IRBuilder<> &B, in optimizeUnaryDoubleFP()
1011 Value *LibCallSimplifier::optimizeBinaryDoubleFP(CallInst *CI, IRBuilder<> &B) { in optimizeBinaryDoubleFP()
1038 Value *LibCallSimplifier::optimizeCos(CallInst *CI, IRBuilder<> &B) { in optimizeCos()
1086 Value *LibCallSimplifier::optimizePow(CallInst *CI, IRBuilder<> &B) { in optimizePow()
1130 if (auto *OpC = dyn_cast<CallInst>(Op1)) { in optimizePow()
1213 Value *LibCallSimplifier::optimizeExp2(CallInst *CI, IRBuilder<> &B) { in optimizeExp2()
1256 CallInst *CI = B.CreateCall(Callee, {One, LdExpArg}); in optimizeExp2()
1266 Value *LibCallSimplifier::optimizeFabs(CallInst *CI, IRBuilder<> &B) { in optimizeFabs()
1289 Value *LibCallSimplifier::optimizeFMinFMax(CallInst *CI, IRBuilder<> &B) { in optimizeFMinFMax()
1338 Value *LibCallSimplifier::optimizeLog(CallInst *CI, IRBuilder<> &B) { in optimizeLog()
1355 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeLog()
1388 Value *LibCallSimplifier::optimizeSqrt(CallInst *CI, IRBuilder<> &B) { in optimizeSqrt()
1455 Value *LibCallSimplifier::optimizeTan(CallInst *CI, IRBuilder<> &B) { in optimizeTan()
1472 auto *OpC = dyn_cast<CallInst>(Op1); in optimizeTan()
1489 static bool isTrigLibCall(CallInst *CI);
1494 Value *LibCallSimplifier::optimizeSinCosPi(CallInst *CI, IRBuilder<> &B) { in optimizeSinCosPi()
1502 SmallVector<CallInst *, 1> SinCalls; in optimizeSinCosPi()
1503 SmallVector<CallInst *, 1> CosCalls; in optimizeSinCosPi()
1504 SmallVector<CallInst *, 1> SinCosCalls; in optimizeSinCosPi()
1529 static bool isTrigLibCall(CallInst *CI) { in isTrigLibCall()
1547 SmallVectorImpl<CallInst *> &SinCalls, in classifyArgUse()
1548 SmallVectorImpl<CallInst *> &CosCalls, in classifyArgUse()
1549 SmallVectorImpl<CallInst *> &SinCosCalls) { in classifyArgUse()
1550 CallInst *CI = dyn_cast<CallInst>(Val); in classifyArgUse()
1578 void LibCallSimplifier::replaceTrigInsts(SmallVectorImpl<CallInst *> &Calls, in replaceTrigInsts()
1580 for (CallInst *C : Calls) in replaceTrigInsts()
1643 Value *LibCallSimplifier::optimizeFFS(CallInst *CI, IRBuilder<> &B) { in optimizeFFS()
1669 Value *LibCallSimplifier::optimizeAbs(CallInst *CI, IRBuilder<> &B) { in optimizeAbs()
1685 Value *LibCallSimplifier::optimizeIsDigit(CallInst *CI, IRBuilder<> &B) { in optimizeIsDigit()
1696 Value *LibCallSimplifier::optimizeIsAscii(CallInst *CI, IRBuilder<> &B) { in optimizeIsAscii()
1706 Value *LibCallSimplifier::optimizeToAscii(CallInst *CI, IRBuilder<> &B) { in optimizeToAscii()
1719 static bool isReportingError(Function *Callee, CallInst *CI, int StreamArg);
1721 Value *LibCallSimplifier::optimizeErrorReporting(CallInst *CI, IRBuilder<> &B, in optimizeErrorReporting()
1741 static bool isReportingError(Function *Callee, CallInst *CI, int StreamArg) { in isReportingError()
1762 Value *LibCallSimplifier::optimizePrintFString(CallInst *CI, IRBuilder<> &B) { in optimizePrintFString()
1818 Value *LibCallSimplifier::optimizePrintF(CallInst *CI, IRBuilder<> &B) { in optimizePrintF()
1837 CallInst *New = cast<CallInst>(CI->clone()); in optimizePrintF()
1845 Value *LibCallSimplifier::optimizeSPrintFString(CallInst *CI, IRBuilder<> &B) { in optimizeSPrintFString()
1905 Value *LibCallSimplifier::optimizeSPrintF(CallInst *CI, IRBuilder<> &B) { in optimizeSPrintF()
1924 CallInst *New = cast<CallInst>(CI->clone()); in optimizeSPrintF()
1932 Value *LibCallSimplifier::optimizeFPrintFString(CallInst *CI, IRBuilder<> &B) { in optimizeFPrintFString()
1981 Value *LibCallSimplifier::optimizeFPrintF(CallInst *CI, IRBuilder<> &B) { in optimizeFPrintF()
2000 CallInst *New = cast<CallInst>(CI->clone()); in optimizeFPrintF()
2008 Value *LibCallSimplifier::optimizeFWrite(CallInst *CI, IRBuilder<> &B) { in optimizeFWrite()
2043 Value *LibCallSimplifier::optimizeFPuts(CallInst *CI, IRBuilder<> &B) { in optimizeFPuts()
2066 Value *LibCallSimplifier::optimizePuts(CallInst *CI, IRBuilder<> &B) { in optimizePuts()
2099 Value *LibCallSimplifier::optimizeStringMemoryLibCall(CallInst *CI, in optimizeStringMemoryLibCall()
2165 Value *LibCallSimplifier::optimizeCall(CallInst *CI) { in optimizeCall()
2204 CallInst *SimplifiedCI = dyn_cast<CallInst>(SimplifiedFortifiedCI); in optimizeCall()
2395 bool FortifiedLibCallSimplifier::isFortifiedCallFoldable(CallInst *CI, in isFortifiedCallFoldable()
2422 Value *FortifiedLibCallSimplifier::optimizeMemCpyChk(CallInst *CI, IRBuilder<> &B) { in optimizeMemCpyChk()
2436 Value *FortifiedLibCallSimplifier::optimizeMemMoveChk(CallInst *CI, IRBuilder<> &B) { in optimizeMemMoveChk()
2450 Value *FortifiedLibCallSimplifier::optimizeMemSetChk(CallInst *CI, IRBuilder<> &B) { in optimizeMemSetChk()
2464 Value *FortifiedLibCallSimplifier::optimizeStrpCpyChk(CallInst *CI, in optimizeStrpCpyChk()
2509 Value *FortifiedLibCallSimplifier::optimizeStrpNCpyChk(CallInst *CI, in optimizeStrpNCpyChk()
2525 Value *FortifiedLibCallSimplifier::optimizeCall(CallInst *CI) { in optimizeCall()