Lines Matching refs:TLI

676                                 const TargetLibraryInfo *TLI) {  in CastGEPIndices()  argument
703 if (Constant *Folded = ConstantFoldConstantExpression(CE, DL, TLI)) in CastGEPIndices()
729 const TargetLibraryInfo *TLI) { in SymbolicallyEvaluateGEP() argument
755 Res = ConstantFoldConstantExpression(ResCE, DL, TLI); in SymbolicallyEvaluateGEP()
893 const TargetLibraryInfo *TLI) { in ConstantFoldInstruction() argument
912 C = ConstantFoldConstantExpression(NewC, DL, TLI); in ConstantFoldInstruction()
935 Op = ConstantFoldConstantExpression(NewCE, DL, TLI); in ConstantFoldInstruction()
942 DL, TLI); in ConstantFoldInstruction()
960 return ConstantFoldInstOperands(I->getOpcode(), I->getType(), Ops, DL, TLI); in ConstantFoldInstruction()
965 const TargetLibraryInfo *TLI, in ConstantFoldConstantExpressionImpl() argument
975 NewC = ConstantFoldConstantExpressionImpl(NewCE, DL, TLI, FoldedOps); in ConstantFoldConstantExpressionImpl()
982 DL, TLI); in ConstantFoldConstantExpressionImpl()
983 return ConstantFoldInstOperands(CE->getOpcode(), CE->getType(), Ops, DL, TLI); in ConstantFoldConstantExpressionImpl()
991 const TargetLibraryInfo *TLI) { in ConstantFoldConstantExpression() argument
993 return ConstantFoldConstantExpressionImpl(CE, DL, TLI, FoldedOps); in ConstantFoldConstantExpression()
1009 const TargetLibraryInfo *TLI) { in ConstantFoldInstOperands() argument
1027 return ConstantFoldCall(F, Ops.slice(0, Ops.size() - 1), TLI); in ConstantFoldInstOperands()
1091 if (Constant *C = CastGEPIndices(SrcTy, Ops, DestTy, DL, TLI)) in ConstantFoldInstOperands()
1093 if (Constant *C = SymbolicallyEvaluateGEP(SrcTy, Ops, DestTy, DL, TLI)) in ConstantFoldInstOperands()
1107 const TargetLibraryInfo *TLI) { in ConstantFoldCompareInstOperands() argument
1125 return ConstantFoldCompareInstOperands(Predicate, C, Null, DL, TLI); in ConstantFoldCompareInstOperands()
1135 return ConstantFoldCompareInstOperands(Predicate, C, Null, DL, TLI); in ConstantFoldCompareInstOperands()
1151 return ConstantFoldCompareInstOperands(Predicate, C0, C1, DL, TLI); in ConstantFoldCompareInstOperands()
1161 Predicate, CE0->getOperand(0), CE1->getOperand(0), DL, TLI); in ConstantFoldCompareInstOperands()
1172 Predicate, CE0->getOperand(0), Ops1, DL, TLI); in ConstantFoldCompareInstOperands()
1174 Predicate, CE0->getOperand(1), Ops1, DL, TLI); in ConstantFoldCompareInstOperands()
1178 return ConstantFoldInstOperands(OpC, LHS->getType(), Ops, DL, TLI); in ConstantFoldCompareInstOperands()
1403 const TargetLibraryInfo *TLI) { in ConstantFoldScalarCall() argument
1456 if (!TLI) in ConstantFoldScalarCall()
1461 if (Name == "acos" && TLI->has(LibFunc::acos)) in ConstantFoldScalarCall()
1463 else if (Name == "asin" && TLI->has(LibFunc::asin)) in ConstantFoldScalarCall()
1465 else if (Name == "atan" && TLI->has(LibFunc::atan)) in ConstantFoldScalarCall()
1469 if (Name == "ceil" && TLI->has(LibFunc::ceil)) in ConstantFoldScalarCall()
1471 else if (Name == "cos" && TLI->has(LibFunc::cos)) in ConstantFoldScalarCall()
1473 else if (Name == "cosh" && TLI->has(LibFunc::cosh)) in ConstantFoldScalarCall()
1475 else if (Name == "cosf" && TLI->has(LibFunc::cosf)) in ConstantFoldScalarCall()
1479 if (Name == "exp" && TLI->has(LibFunc::exp)) in ConstantFoldScalarCall()
1482 if (Name == "exp2" && TLI->has(LibFunc::exp2)) { in ConstantFoldScalarCall()
1489 if (Name == "fabs" && TLI->has(LibFunc::fabs)) in ConstantFoldScalarCall()
1491 else if (Name == "floor" && TLI->has(LibFunc::floor)) in ConstantFoldScalarCall()
1495 if (Name == "log" && V > 0 && TLI->has(LibFunc::log)) in ConstantFoldScalarCall()
1497 else if (Name == "log10" && V > 0 && TLI->has(LibFunc::log10)) in ConstantFoldScalarCall()
1514 if (Name == "sin" && TLI->has(LibFunc::sin)) in ConstantFoldScalarCall()
1516 else if (Name == "sinh" && TLI->has(LibFunc::sinh)) in ConstantFoldScalarCall()
1518 else if (Name == "sqrt" && V >= 0 && TLI->has(LibFunc::sqrt)) in ConstantFoldScalarCall()
1520 else if (Name == "sqrtf" && V >= 0 && TLI->has(LibFunc::sqrtf)) in ConstantFoldScalarCall()
1522 else if (Name == "sinf" && TLI->has(LibFunc::sinf)) in ConstantFoldScalarCall()
1526 if (Name == "tan" && TLI->has(LibFunc::tan)) in ConstantFoldScalarCall()
1528 else if (Name == "tanh" && TLI->has(LibFunc::tanh)) in ConstantFoldScalarCall()
1629 if (!TLI) in ConstantFoldScalarCall()
1631 if (Name == "pow" && TLI->has(LibFunc::pow)) in ConstantFoldScalarCall()
1633 if (Name == "fmod" && TLI->has(LibFunc::fmod)) in ConstantFoldScalarCall()
1635 if (Name == "atan2" && TLI->has(LibFunc::atan2)) in ConstantFoldScalarCall()
1739 const TargetLibraryInfo *TLI) { in ConstantFoldVectorCall() argument
1755 Constant *Folded = ConstantFoldScalarCall(Name, IntrinsicID, Ty, Lane, TLI); in ConstantFoldVectorCall()
1768 const TargetLibraryInfo *TLI) { in ConstantFoldCall() argument
1776 return ConstantFoldVectorCall(Name, F->getIntrinsicID(), VTy, Operands, TLI); in ConstantFoldCall()
1778 return ConstantFoldScalarCall(Name, F->getIntrinsicID(), Ty, Operands, TLI); in ConstantFoldCall()