Skip to content

Commit 19556ec

Browse files
authored
[RTLIB] Rename getFSINCOS() to getSINCOS (NFC) (#126705)
This makes the name more consistent with the other helpers.
1 parent a09beae commit 19556ec

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

llvm/include/llvm/CodeGen/RuntimeLibcallUtil.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ Libcall getLDEXP(EVT RetVT);
6262
/// UNKNOWN_LIBCALL if there is none.
6363
Libcall getFREXP(EVT RetVT);
6464

65-
/// getFSINCOS - Return the FSINCOS_* value for the given types, or
65+
/// getSINCOS - Return the SINCOS_* value for the given types, or
6666
/// UNKNOWN_LIBCALL if there is none.
67-
Libcall getFSINCOS(EVT RetVT);
67+
Libcall getSINCOS(EVT RetVT);
6868

6969
/// getSINCOSPI - Return the SINCOSPI_* value for the given types, or
7070
/// UNKNOWN_LIBCALL if there is none.

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,7 +2284,7 @@ SelectionDAGLegalize::ExpandDivRemLibCall(SDNode *Node,
22842284

22852285
/// Return true if sincos libcall is available.
22862286
static bool isSinCosLibcallAvailable(SDNode *Node, const TargetLowering &TLI) {
2287-
RTLIB::Libcall LC = RTLIB::getFSINCOS(Node->getSimpleValueType(0).SimpleTy);
2287+
RTLIB::Libcall LC = RTLIB::getSINCOS(Node->getSimpleValueType(0).SimpleTy);
22882288
return TLI.getLibcallName(LC) != nullptr;
22892289
}
22902290

@@ -4524,7 +4524,7 @@ void SelectionDAGLegalize::ConvertNodeToLibcall(SDNode *Node) {
45244524
case ISD::FSINCOSPI: {
45254525
EVT VT = Node->getValueType(0);
45264526
RTLIB::Libcall LC = Node->getOpcode() == ISD::FSINCOS
4527-
? RTLIB::getFSINCOS(VT)
4527+
? RTLIB::getSINCOS(VT)
45284528
: RTLIB::getSINCOSPI(VT);
45294529
bool Expanded = DAG.expandMultipleResultFPLibCall(LC, Node, Results);
45304530
if (!Expanded)

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ DAGTypeLegalizer::SoftenFloatRes_UnaryWithTwoFPResults(SDNode *N,
833833

834834
SDValue DAGTypeLegalizer::SoftenFloatRes_FSINCOS(SDNode *N) {
835835
return SoftenFloatRes_UnaryWithTwoFPResults(
836-
N, RTLIB::getFSINCOS(N->getValueType(0)));
836+
N, RTLIB::getSINCOS(N->getValueType(0)));
837837
}
838838

839839
SDValue DAGTypeLegalizer::SoftenFloatRes_FREM(SDNode *N) {

llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ void VectorLegalizer::Expand(SDNode *Node, SmallVectorImpl<SDValue> &Results) {
12221222
case ISD::FSINCOSPI: {
12231223
EVT VT = Node->getValueType(0).getVectorElementType();
12241224
RTLIB::Libcall LC = Node->getOpcode() == ISD::FSINCOS
1225-
? RTLIB::getFSINCOS(VT)
1225+
? RTLIB::getSINCOS(VT)
12261226
: RTLIB::getSINCOSPI(VT);
12271227
if (DAG.expandMultipleResultFPLibCall(LC, Node, Results))
12281228
return;

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ RTLIB::Libcall RTLIB::getFREXP(EVT RetVT) {
402402
FREXP_PPCF128);
403403
}
404404

405-
RTLIB::Libcall RTLIB::getFSINCOS(EVT RetVT) {
405+
RTLIB::Libcall RTLIB::getSINCOS(EVT RetVT) {
406406
return getFPLibCall(RetVT, SINCOS_F32, SINCOS_F64, SINCOS_F80, SINCOS_F128,
407407
SINCOS_PPCF128);
408408
}

0 commit comments

Comments
 (0)