Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Name

1279   StringRef Name = F->getName();
1282 // return true for a name like "cos\0blah" which strcmp would return equal to
1284 switch (Name[0]) {
1288 return Name == "acos" || Name == "asin" || Name == "atan" ||
1289 Name == "atan2" || Name == "acosf" || Name == "asinf" ||
1290 Name == "atanf" || Name == "atan2f";
1292 return Name == "ceil" || Name == "cos" || Name == "cosh" ||
1293 Name == "ceilf" || Name == "cosf" || Name == "coshf";
1295 return Name == "exp" || Name == "exp2" || Name == "expf" || Name == "exp2f";
1297 return Name == "fabs" || Name == "floor" || Name == "fmod" ||
1298 Name == "fabsf" || Name == "floorf" || Name == "fmodf";
1300 return Name == "log" || Name == "log10" || Name == "logf" ||
1301 Name == "log10f";
1303 return Name == "pow" || Name == "powf";
1305 return Name == "sin" || Name == "sinh" || Name == "sqrt" ||
1306 Name == "sinf" || Name == "sinhf" || Name == "sqrtf";
1308 return Name == "tan" || Name == "tanh" || Name == "tanf" || Name == "tanhf";
1414 static Constant *ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID,
1502 switch (Name[0]) {
1504 if ((Name == "acos" && TLI->has(LibFunc::acos)) ||
1505 (Name == "acosf" && TLI->has(LibFunc::acosf)))
1507 else if ((Name == "asin" && TLI->has(LibFunc::asin)) ||
1508 (Name == "asinf" && TLI->has(LibFunc::asinf)))
1510 else if ((Name == "atan" && TLI->has(LibFunc::atan)) ||
1511 (Name == "atanf" && TLI->has(LibFunc::atanf)))
1515 if ((Name == "ceil" && TLI->has(LibFunc::ceil)) ||
1516 (Name == "ceilf" && TLI->has(LibFunc::ceilf)))
1518 else if ((Name == "cos" && TLI->has(LibFunc::cos)) ||
1519 (Name == "cosf" && TLI->has(LibFunc::cosf)))
1521 else if ((Name == "cosh" && TLI->has(LibFunc::cosh)) ||
1522 (Name == "coshf" && TLI->has(LibFunc::coshf)))
1526 if ((Name == "exp" && TLI->has(LibFunc::exp)) ||
1527 (Name == "expf" && TLI->has(LibFunc::expf)))
1529 if ((Name == "exp2" && TLI->has(LibFunc::exp2)) ||
1530 (Name == "exp2f" && TLI->has(LibFunc::exp2f)))
1536 if ((Name == "fabs" && TLI->has(LibFunc::fabs)) ||
1537 (Name == "fabsf" && TLI->has(LibFunc::fabsf)))
1539 else if ((Name == "floor" && TLI->has(LibFunc::floor)) ||
1540 (Name == "floorf" && TLI->has(LibFunc::floorf)))
1544 if ((Name == "log" && V > 0 && TLI->has(LibFunc::log)) ||
1545 (Name == "logf" && V > 0 && TLI->has(LibFunc::logf)))
1547 else if ((Name == "log10" && V > 0 && TLI->has(LibFunc::log10)) ||
1548 (Name == "log10f" && V > 0 && TLI->has(LibFunc::log10f)))
1565 if ((Name == "sin" && TLI->has(LibFunc::sin)) ||
1566 (Name == "sinf" && TLI->has(LibFunc::sinf)))
1568 else if ((Name == "sinh" && TLI->has(LibFunc::sinh)) ||
1569 (Name == "sinhf" && TLI->has(LibFunc::sinhf)))
1571 else if ((Name == "sqrt" && V >= 0 && TLI->has(LibFunc::sqrt)) ||
1572 (Name == "sqrtf" && V >= 0 && TLI->has(LibFunc::sqrtf)))
1576 if ((Name == "tan" && TLI->has(LibFunc::tan)) ||
1577 (Name == "tanf" && TLI->has(LibFunc::tanf)))
1579 else if ((Name == "tanh" && TLI->has(LibFunc::tanh)) ||
1580 (Name == "tanhf" && TLI->has(LibFunc::tanhf)))
1683 if ((Name == "pow" && TLI->has(LibFunc::pow)) ||
1684 (Name == "powf" && TLI->has(LibFunc::powf)))
1686 if ((Name == "fmod" && TLI->has(LibFunc::fmod)) ||
1687 (Name == "fmodf" && TLI->has(LibFunc::fmodf)))
1689 if ((Name == "atan2" && TLI->has(LibFunc::atan2)) ||
1690 (Name == "atan2f" && TLI->has(LibFunc::atan2f)))
1791 static Constant *ConstantFoldVectorCall(StringRef Name, unsigned IntrinsicID,
1810 Constant *Folded = ConstantFoldScalarCall(Name, IntrinsicID, Ty, Lane, TLI);
1826 StringRef Name = F->getName();
1831 return ConstantFoldVectorCall(Name, F->getIntrinsicID(), VTy, Operands, TLI);
1833 return ConstantFoldScalarCall(Name, F->getIntrinsicID(), Ty, Operands, TLI);