Lines Matching refs:TLI
679 const TargetLibraryInfo *TLI) { in CastGEPIndices() argument
706 if (Constant *Folded = ConstantFoldConstantExpression(CE, DL, TLI)) in CastGEPIndices()
732 const TargetLibraryInfo *TLI) { in SymbolicallyEvaluateGEP() argument
758 Res = ConstantFoldConstantExpression(ResCE, DL, TLI); in SymbolicallyEvaluateGEP()
896 const TargetLibraryInfo *TLI) { in ConstantFoldInstruction() argument
914 C = ConstantFoldConstantExpression(NewC, DL, TLI); in ConstantFoldInstruction()
937 Op = ConstantFoldConstantExpression(NewCE, DL, TLI); in ConstantFoldInstruction()
944 DL, TLI); in ConstantFoldInstruction()
962 return ConstantFoldInstOperands(I->getOpcode(), I->getType(), Ops, DL, TLI); in ConstantFoldInstruction()
967 const TargetLibraryInfo *TLI, in ConstantFoldConstantExpressionImpl() argument
977 NewC = ConstantFoldConstantExpressionImpl(NewCE, DL, TLI, FoldedOps); in ConstantFoldConstantExpressionImpl()
984 DL, TLI); in ConstantFoldConstantExpressionImpl()
985 return ConstantFoldInstOperands(CE->getOpcode(), CE->getType(), Ops, DL, TLI); in ConstantFoldConstantExpressionImpl()
993 const TargetLibraryInfo *TLI) { in ConstantFoldConstantExpression() argument
995 return ConstantFoldConstantExpressionImpl(CE, DL, TLI, FoldedOps); in ConstantFoldConstantExpression()
1011 const TargetLibraryInfo *TLI) { in ConstantFoldInstOperands() argument
1029 return ConstantFoldCall(F, Ops.slice(0, Ops.size() - 1), TLI); in ConstantFoldInstOperands()
1093 if (Constant *C = CastGEPIndices(SrcTy, Ops, DestTy, DL, TLI)) in ConstantFoldInstOperands()
1095 if (Constant *C = SymbolicallyEvaluateGEP(SrcTy, Ops, DestTy, DL, TLI)) in ConstantFoldInstOperands()
1109 const TargetLibraryInfo *TLI) { in ConstantFoldCompareInstOperands() argument
1127 return ConstantFoldCompareInstOperands(Predicate, C, Null, DL, TLI); in ConstantFoldCompareInstOperands()
1137 return ConstantFoldCompareInstOperands(Predicate, C, Null, DL, TLI); in ConstantFoldCompareInstOperands()
1153 return ConstantFoldCompareInstOperands(Predicate, C0, C1, DL, TLI); in ConstantFoldCompareInstOperands()
1163 Predicate, CE0->getOperand(0), CE1->getOperand(0), DL, TLI); in ConstantFoldCompareInstOperands()
1174 Predicate, CE0->getOperand(0), Ops1, DL, TLI); in ConstantFoldCompareInstOperands()
1176 Predicate, CE0->getOperand(1), Ops1, DL, TLI); in ConstantFoldCompareInstOperands()
1180 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, DL, TLI); in ConstantFoldCompareInstOperands()
1416 const TargetLibraryInfo *TLI) { in ConstantFoldScalarCall() argument
1499 if (!TLI) in ConstantFoldScalarCall()
1504 if ((Name == "acos" && TLI->has(LibFunc::acos)) || in ConstantFoldScalarCall()
1505 (Name == "acosf" && TLI->has(LibFunc::acosf))) in ConstantFoldScalarCall()
1507 else if ((Name == "asin" && TLI->has(LibFunc::asin)) || in ConstantFoldScalarCall()
1508 (Name == "asinf" && TLI->has(LibFunc::asinf))) in ConstantFoldScalarCall()
1510 else if ((Name == "atan" && TLI->has(LibFunc::atan)) || in ConstantFoldScalarCall()
1511 (Name == "atanf" && TLI->has(LibFunc::atanf))) in ConstantFoldScalarCall()
1515 if ((Name == "ceil" && TLI->has(LibFunc::ceil)) || in ConstantFoldScalarCall()
1516 (Name == "ceilf" && TLI->has(LibFunc::ceilf))) in ConstantFoldScalarCall()
1518 else if ((Name == "cos" && TLI->has(LibFunc::cos)) || in ConstantFoldScalarCall()
1519 (Name == "cosf" && TLI->has(LibFunc::cosf))) in ConstantFoldScalarCall()
1521 else if ((Name == "cosh" && TLI->has(LibFunc::cosh)) || in ConstantFoldScalarCall()
1522 (Name == "coshf" && TLI->has(LibFunc::coshf))) in ConstantFoldScalarCall()
1526 if ((Name == "exp" && TLI->has(LibFunc::exp)) || in ConstantFoldScalarCall()
1527 (Name == "expf" && TLI->has(LibFunc::expf))) in ConstantFoldScalarCall()
1529 if ((Name == "exp2" && TLI->has(LibFunc::exp2)) || in ConstantFoldScalarCall()
1530 (Name == "exp2f" && TLI->has(LibFunc::exp2f))) in ConstantFoldScalarCall()
1536 if ((Name == "fabs" && TLI->has(LibFunc::fabs)) || in ConstantFoldScalarCall()
1537 (Name == "fabsf" && TLI->has(LibFunc::fabsf))) in ConstantFoldScalarCall()
1539 else if ((Name == "floor" && TLI->has(LibFunc::floor)) || in ConstantFoldScalarCall()
1540 (Name == "floorf" && TLI->has(LibFunc::floorf))) in ConstantFoldScalarCall()
1544 if ((Name == "log" && V > 0 && TLI->has(LibFunc::log)) || in ConstantFoldScalarCall()
1545 (Name == "logf" && V > 0 && TLI->has(LibFunc::logf))) in ConstantFoldScalarCall()
1547 else if ((Name == "log10" && V > 0 && TLI->has(LibFunc::log10)) || in ConstantFoldScalarCall()
1548 (Name == "log10f" && V > 0 && TLI->has(LibFunc::log10f))) in ConstantFoldScalarCall()
1565 if ((Name == "sin" && TLI->has(LibFunc::sin)) || in ConstantFoldScalarCall()
1566 (Name == "sinf" && TLI->has(LibFunc::sinf))) in ConstantFoldScalarCall()
1568 else if ((Name == "sinh" && TLI->has(LibFunc::sinh)) || in ConstantFoldScalarCall()
1569 (Name == "sinhf" && TLI->has(LibFunc::sinhf))) in ConstantFoldScalarCall()
1571 else if ((Name == "sqrt" && V >= 0 && TLI->has(LibFunc::sqrt)) || in ConstantFoldScalarCall()
1572 (Name == "sqrtf" && V >= 0 && TLI->has(LibFunc::sqrtf))) in ConstantFoldScalarCall()
1576 if ((Name == "tan" && TLI->has(LibFunc::tan)) || in ConstantFoldScalarCall()
1577 (Name == "tanf" && TLI->has(LibFunc::tanf))) in ConstantFoldScalarCall()
1579 else if ((Name == "tanh" && TLI->has(LibFunc::tanh)) || in ConstantFoldScalarCall()
1580 (Name == "tanhf" && TLI->has(LibFunc::tanhf))) in ConstantFoldScalarCall()
1681 if (!TLI) in ConstantFoldScalarCall()
1683 if ((Name == "pow" && TLI->has(LibFunc::pow)) || in ConstantFoldScalarCall()
1684 (Name == "powf" && TLI->has(LibFunc::powf))) in ConstantFoldScalarCall()
1686 if ((Name == "fmod" && TLI->has(LibFunc::fmod)) || in ConstantFoldScalarCall()
1687 (Name == "fmodf" && TLI->has(LibFunc::fmodf))) in ConstantFoldScalarCall()
1689 if ((Name == "atan2" && TLI->has(LibFunc::atan2)) || in ConstantFoldScalarCall()
1690 (Name == "atan2f" && TLI->has(LibFunc::atan2f))) in ConstantFoldScalarCall()
1794 const TargetLibraryInfo *TLI) { in ConstantFoldVectorCall() argument
1810 Constant *Folded = ConstantFoldScalarCall(Name, IntrinsicID, Ty, Lane, TLI); in ConstantFoldVectorCall()
1823 const TargetLibraryInfo *TLI) { in ConstantFoldCall() argument
1831 return ConstantFoldVectorCall(Name, F->getIntrinsicID(), VTy, Operands, TLI); in ConstantFoldCall()
1833 return ConstantFoldScalarCall(Name, F->getIntrinsicID(), Ty, Operands, TLI); in ConstantFoldCall()