diff --git a/llvm/include/llvm/CodeGen/RuntimeLibcallUtil.h b/llvm/include/llvm/CodeGen/RuntimeLibcallUtil.h index 34d783ae3f513..fb2d4ebd2f62f 100644 --- a/llvm/include/llvm/CodeGen/RuntimeLibcallUtil.h +++ b/llvm/include/llvm/CodeGen/RuntimeLibcallUtil.h @@ -62,9 +62,9 @@ Libcall getLDEXP(EVT RetVT); /// UNKNOWN_LIBCALL if there is none. Libcall getFREXP(EVT RetVT); -/// getFSINCOS - Return the FSINCOS_* value for the given types, or +/// getSINCOS - Return the SINCOS_* value for the given types, or /// UNKNOWN_LIBCALL if there is none. -Libcall getFSINCOS(EVT RetVT); +Libcall getSINCOS(EVT RetVT); /// getSINCOSPI - Return the SINCOSPI_* value for the given types, or /// UNKNOWN_LIBCALL if there is none. diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 66d7f57b93fb7..f56097fdbb51a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2284,7 +2284,7 @@ SelectionDAGLegalize::ExpandDivRemLibCall(SDNode *Node, /// Return true if sincos libcall is available. static bool isSinCosLibcallAvailable(SDNode *Node, const TargetLowering &TLI) { - RTLIB::Libcall LC = RTLIB::getFSINCOS(Node->getSimpleValueType(0).SimpleTy); + RTLIB::Libcall LC = RTLIB::getSINCOS(Node->getSimpleValueType(0).SimpleTy); return TLI.getLibcallName(LC) != nullptr; } @@ -4524,7 +4524,7 @@ void SelectionDAGLegalize::ConvertNodeToLibcall(SDNode *Node) { case ISD::FSINCOSPI: { EVT VT = Node->getValueType(0); RTLIB::Libcall LC = Node->getOpcode() == ISD::FSINCOS - ? RTLIB::getFSINCOS(VT) + ? RTLIB::getSINCOS(VT) : RTLIB::getSINCOSPI(VT); bool Expanded = DAG.expandMultipleResultFPLibCall(LC, Node, Results); if (!Expanded) diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index 6dcc2464f61f2..4b79bd28e2750 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -833,7 +833,7 @@ DAGTypeLegalizer::SoftenFloatRes_UnaryWithTwoFPResults(SDNode *N, SDValue DAGTypeLegalizer::SoftenFloatRes_FSINCOS(SDNode *N) { return SoftenFloatRes_UnaryWithTwoFPResults( - N, RTLIB::getFSINCOS(N->getValueType(0))); + N, RTLIB::getSINCOS(N->getValueType(0))); } SDValue DAGTypeLegalizer::SoftenFloatRes_FREM(SDNode *N) { diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index 111b08aeab185..7e8bae4b0f785 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -1222,7 +1222,7 @@ void VectorLegalizer::Expand(SDNode *Node, SmallVectorImpl &Results) { case ISD::FSINCOSPI: { EVT VT = Node->getValueType(0).getVectorElementType(); RTLIB::Libcall LC = Node->getOpcode() == ISD::FSINCOS - ? RTLIB::getFSINCOS(VT) + ? RTLIB::getSINCOS(VT) : RTLIB::getSINCOSPI(VT); if (DAG.expandMultipleResultFPLibCall(LC, Node, Results)) return; diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index d9a19dfceb6d3..51cde7ce139e2 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -402,7 +402,7 @@ RTLIB::Libcall RTLIB::getFREXP(EVT RetVT) { FREXP_PPCF128); } -RTLIB::Libcall RTLIB::getFSINCOS(EVT RetVT) { +RTLIB::Libcall RTLIB::getSINCOS(EVT RetVT) { return getFPLibCall(RetVT, SINCOS_F32, SINCOS_F64, SINCOS_F80, SINCOS_F128, SINCOS_PPCF128); }