Lines Matching refs:TLI

47   const TargetLibraryInfo *TLI;
67 const TargetLibraryInfo *TLI,
71 this->TLI = TLI;
129 static bool hasUnaryFloatFn(const TargetLibraryInfo *TLI, Type *Ty,
134 return TLI->has(FloatFn);
136 return TLI->has(DoubleFn);
138 return TLI->has(LongDoubleFn);
272 Value *Ret = EmitStrCpy(Dst, Src, B, TD, TLI, Name.substr(2, 6));
285 CI->getArgOperand(2), B, TD, TLI);
309 Value *StrLen = EmitStrLen(Src, B, TD, TLI);
319 Value *Ret = EmitStrCpy(Dst, Src, B, TD, TLI, Name.substr(2, 6));
334 if (!EmitMemCpyChk(Dst, Src, LenV, CI->getArgOperand(2), B, TD, TLI))
359 CI->getArgOperand(2), B, TD, TLI,
404 Value *DstLen = EmitStrLen(Dst, B, TD, TLI);
490 B, TD, TLI);
532 return EmitStrChr(SrcStr, '\0', B, TD, TLI);
585 std::min(Len1, Len2)), B, TD, TLI);
618 return EmitMemCmp(Str1P, Str2P, CI->getArgOperand(2), B, TD, TLI);
686 Value *StrLen = EmitStrLen(Src, B, TD, TLI);
806 return EmitStrChr(CI->getArgOperand(0), S2[0], B, TD, TLI);
886 return EmitStrLen(CI->getArgOperand(0), B, TD, TLI);
907 Value *StrLen = EmitStrLen(CI->getArgOperand(1), B, TD, TLI);
911 StrLen, B, TD, TLI);
949 Value *StrChr= EmitStrChr(CI->getArgOperand(0), ToFindStr[0], B, TD, TLI);
1115 TLI->has(LibFunc::cosf)) {
1142 TLI->has(LibFunc::powf)) {
1162 hasUnaryFloatFn(TLI, Op1->getType(), LibFunc::exp2, LibFunc::exp2f,
1174 hasUnaryFloatFn(TLI, Op2->getType(), LibFunc::sqrt, LibFunc::sqrtf,
1176 hasUnaryFloatFn(TLI, Op2->getType(), LibFunc::fabs, LibFunc::fabsf,
1210 TLI->has(LibFunc::exp2f)) {
1328 if (!TLI->getLibFunc(FuncName, Func) || !TLI->has(Func) ||
1583 Value *Res = EmitPutChar(B.getInt32(FormatStr[0]), B, TD, TLI);
1595 Value *NewCI = EmitPutS(GV, B, TD, TLI);
1605 Value *Res = EmitPutChar(CI->getArgOperand(1), B, TD, TLI);
1614 return EmitPutS(CI->getArgOperand(1), B, TD, TLI);
1633 if (TLI->has(LibFunc::iprintf) && !callHasFloatingPointArgument(CI)) {
1698 Value *Len = EmitStrLen(CI->getArgOperand(2), B, TD, TLI);
1726 if (TLI->has(LibFunc::siprintf) && !callHasFloatingPointArgument(CI)) {
1768 CI->getArgOperand(0), B, TD, TLI);
1781 return EmitFPutC(CI->getArgOperand(2), CI->getArgOperand(0), B, TD, TLI);
1788 return EmitFPutS(CI->getArgOperand(2), CI->getArgOperand(0), B, TD, TLI);
1807 if (TLI->has(LibFunc::fiprintf) && !callHasFloatingPointArgument(CI)) {
1848 Value *NewCI = EmitFPutC(Char, CI->getArgOperand(3), B, TD, TLI);
1877 CI->getArgOperand(1), B, TD, TLI);
1897 Value *Res = EmitPutChar(B.getInt32('\n'), B, TD, TLI);
1912 const TargetLibraryInfo *TLI;
1921 LibCallSimplifierImpl(const DataLayout *TD, const TargetLibraryInfo *TLI,
1926 this->TLI = TLI;
1940 if (TLI->getLibFunc(FloatFuncName, Func))
1941 return TLI->has(Func);
2017 if (TLI->getLibFunc(FuncName, Func) && TLI->has(Func)) {
2178 return LCO->optimizeCall(CI, TD, TLI, LCS, Builder);
2184 const TargetLibraryInfo *TLI,
2186 Impl = new LibCallSimplifierImpl(TD, TLI, this, UnsafeFPShrink);