Skip to content

Commit 4c7ef35

Browse files
committed
remove llvm specific code
1 parent 486aff6 commit 4c7ef35

32 files changed

+12
-452
lines changed

llvm/docs/GlobalISel/GenericOpcode.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,8 +592,8 @@ G_FLOG, G_FLOG2, G_FLOG10
592592

593593
Calculate the base-e, base-2, or base-10 respectively.
594594

595-
G_FCEIL, G_FCOS, G_FSIN, G_FTAN, G_FSQRT, G_FFLOOR, G_FRINT, G_FNEARBYINT
596-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
595+
G_FCEIL, G_FCOS, G_FSIN, G_FSQRT, G_FFLOOR, G_FRINT, G_FNEARBYINT
596+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
597597

598598
These correspond to the standard C functions of the same name.
599599

llvm/include/llvm/Analysis/VecFuncs.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ TLI_DEFINE_VECFUNC("llvm.sin.f32", "vsinf", FIXED(4), "_ZGV_LLVM_N4v")
5454
TLI_DEFINE_VECFUNC("cosf", "vcosf", FIXED(4), "_ZGV_LLVM_N4v")
5555
TLI_DEFINE_VECFUNC("llvm.cos.f32", "vcosf", FIXED(4), "_ZGV_LLVM_N4v")
5656
TLI_DEFINE_VECFUNC("tanf", "vtanf", FIXED(4), "_ZGV_LLVM_N4v")
57-
TLI_DEFINE_VECFUNC("llvm.tan.f32", "vtanf", FIXED(4), "_ZGV_LLVM_N4v")
5857
TLI_DEFINE_VECFUNC("asinf", "vasinf", FIXED(4), "_ZGV_LLVM_N4v")
5958
TLI_DEFINE_VECFUNC("acosf", "vacosf", FIXED(4), "_ZGV_LLVM_N4v")
6059
TLI_DEFINE_VECFUNC("atanf", "vatanf", FIXED(4), "_ZGV_LLVM_N4v")

llvm/include/llvm/CodeGen/BasicTTIImpl.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,9 +1924,6 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
19241924
case Intrinsic::cos:
19251925
ISD = ISD::FCOS;
19261926
break;
1927-
case Intrinsic::tan:
1928-
ISD = ISD::FTAN;
1929-
break;
19301927
case Intrinsic::exp:
19311928
ISD = ISD::FEXP;
19321929
break;

llvm/include/llvm/CodeGen/ISDOpcodes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ enum NodeType {
415415
STRICT_FLDEXP,
416416
STRICT_FSIN,
417417
STRICT_FCOS,
418-
STRICT_FTAN,
419418
STRICT_FEXP,
420419
STRICT_FEXP2,
421420
STRICT_FLOG,
@@ -935,7 +934,6 @@ enum NodeType {
935934
FCBRT,
936935
FSIN,
937936
FCOS,
938-
FTAN,
939937
FPOW,
940938
FPOWI,
941939
/// FLDEXP - ldexp, inspired by libm (op0 * 2**op1).

llvm/include/llvm/IR/RuntimeLibcalls.def

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ HANDLE_LIBCALL(COS_F64, "cos")
197197
HANDLE_LIBCALL(COS_F80, "cosl")
198198
HANDLE_LIBCALL(COS_F128, "cosl")
199199
HANDLE_LIBCALL(COS_PPCF128, "cosl")
200-
HANDLE_LIBCALL(TAN_F32, "tanf")
201-
HANDLE_LIBCALL(TAN_F64, "tan")
202-
HANDLE_LIBCALL(TAN_F80, "tanl")
203-
HANDLE_LIBCALL(TAN_F128,"tanl")
204-
HANDLE_LIBCALL(TAN_PPCF128, "tanl")
205200
HANDLE_LIBCALL(SINCOS_F32, nullptr)
206201
HANDLE_LIBCALL(SINCOS_F64, nullptr)
207202
HANDLE_LIBCALL(SINCOS_F80, nullptr)

llvm/include/llvm/Support/TargetOpcodes.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,9 +781,6 @@ HANDLE_TARGET_OPCODE(G_FCOS)
781781
/// Floating point sine.
782782
HANDLE_TARGET_OPCODE(G_FSIN)
783783

784-
/// Floating point Tangent.
785-
HANDLE_TARGET_OPCODE(G_FTAN)
786-
787784
/// Floating point square root.
788785
HANDLE_TARGET_OPCODE(G_FSQRT)
789786

llvm/include/llvm/Target/GenericOpcodes.td

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -988,13 +988,6 @@ def G_FSIN : GenericInstruction {
988988
let hasSideEffects = false;
989989
}
990990

991-
// Floating point tangent of a value.
992-
def G_FTAN : GenericInstruction {
993-
let OutOperandList = (outs type0:$dst);
994-
let InOperandList = (ins type0:$src1);
995-
let hasSideEffects = false;
996-
}
997-
998991
// Floating point square root of a value.
999992
// This returns NaN for negative nonzero values.
1000993
// NOTE: Unlike libm sqrt(), this never sets errno. In all other respects it's

llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def : GINodeEquiv<G_BUILD_VECTOR, build_vector>;
148148
def : GINodeEquiv<G_FCEIL, fceil>;
149149
def : GINodeEquiv<G_FCOS, fcos>;
150150
def : GINodeEquiv<G_FSIN, fsin>;
151-
def : GINodeEquiv<G_FTAN, ftan>;
152151
def : GINodeEquiv<G_FABS, fabs>;
153152
def : GINodeEquiv<G_FSQRT, fsqrt>;
154153
def : GINodeEquiv<G_FFLOOR, ffloor>;

llvm/include/llvm/Target/TargetSelectionDAG.td

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ def fneg : SDNode<"ISD::FNEG" , SDTFPUnaryOp>;
509509
def fsqrt : SDNode<"ISD::FSQRT" , SDTFPUnaryOp>;
510510
def fsin : SDNode<"ISD::FSIN" , SDTFPUnaryOp>;
511511
def fcos : SDNode<"ISD::FCOS" , SDTFPUnaryOp>;
512-
def ftan : SDNode<"ISD::FTAN" , SDTFPUnaryOp>;
513512
def fexp2 : SDNode<"ISD::FEXP2" , SDTFPUnaryOp>;
514513
def fexp10 : SDNode<"ISD::FEXP10" , SDTFPUnaryOp>;
515514
def fpow : SDNode<"ISD::FPOW" , SDTFPBinOp>;
@@ -563,8 +562,6 @@ def strict_fsin : SDNode<"ISD::STRICT_FSIN",
563562
SDTFPUnaryOp, [SDNPHasChain]>;
564563
def strict_fcos : SDNode<"ISD::STRICT_FCOS",
565564
SDTFPUnaryOp, [SDNPHasChain]>;
566-
def strict_ftan : SDNode<"ISD::STRICT_FTAN",
567-
SDTFPUnaryOp, [SDNPHasChain]>;
568565
def strict_fexp2 : SDNode<"ISD::STRICT_FEXP2",
569566
SDTFPUnaryOp, [SDNPHasChain]>;
570567
def strict_fpow : SDNode<"ISD::STRICT_FPOW",
@@ -1517,9 +1514,6 @@ def any_fsin : PatFrags<(ops node:$src),
15171514
def any_fcos : PatFrags<(ops node:$src),
15181515
[(strict_fcos node:$src),
15191516
(fcos node:$src)]>;
1520-
def any_ftan : PatFrags<(ops node:$src),
1521-
[(strict_ftan node:$src),
1522-
(ftan node:$src)]>;
15231517
def any_fexp2 : PatFrags<(ops node:$src),
15241518
[(strict_fexp2 node:$src),
15251519
(fexp2 node:$src)]>;

llvm/lib/Analysis/VectorUtils.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ bool llvm::isTriviallyVectorizable(Intrinsic::ID ID) {
6868
case Intrinsic::sqrt: // Begin floating-point.
6969
case Intrinsic::sin:
7070
case Intrinsic::cos:
71-
case Intrinsic::tan:
7271
case Intrinsic::exp:
7372
case Intrinsic::exp2:
7473
case Intrinsic::log:

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,8 +1945,6 @@ unsigned IRTranslator::getSimpleIntrinsicOpcode(Intrinsic::ID ID) {
19451945
return TargetOpcode::G_FSIN;
19461946
case Intrinsic::sqrt:
19471947
return TargetOpcode::G_FSQRT;
1948-
case Intrinsic::tan:
1949-
return TargetOpcode::G_FTAN;
19501948
case Intrinsic::trunc:
19511949
return TargetOpcode::G_INTRINSIC_TRUNC;
19521950
case Intrinsic::readcyclecounter:

llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,6 @@ static RTLIB::Libcall getRTLibDesc(unsigned Opcode, unsigned Size) {
448448
RTLIBCASE(SIN_F);
449449
case TargetOpcode::G_FCOS:
450450
RTLIBCASE(COS_F);
451-
case TargetOpcode::G_FTAN:
452-
RTLIBCASE(TAN_F);
453451
case TargetOpcode::G_FLOG10:
454452
RTLIBCASE(LOG10_F);
455453
case TargetOpcode::G_FLOG:
@@ -1038,7 +1036,6 @@ LegalizerHelper::libcall(MachineInstr &MI, LostDebugLocObserver &LocObserver) {
10381036
case TargetOpcode::G_FREM:
10391037
case TargetOpcode::G_FCOS:
10401038
case TargetOpcode::G_FSIN:
1041-
case TargetOpcode::G_FTAN:
10421039
case TargetOpcode::G_FLOG10:
10431040
case TargetOpcode::G_FLOG:
10441041
case TargetOpcode::G_FLOG2:
@@ -2893,7 +2890,6 @@ LegalizerHelper::widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy) {
28932890
case TargetOpcode::G_FFLOOR:
28942891
case TargetOpcode::G_FCOS:
28952892
case TargetOpcode::G_FSIN:
2896-
case TargetOpcode::G_FTAN:
28972893
case TargetOpcode::G_FLOG10:
28982894
case TargetOpcode::G_FLOG:
28992895
case TargetOpcode::G_FLOG2:
@@ -4660,7 +4656,6 @@ LegalizerHelper::fewerElementsVector(MachineInstr &MI, unsigned TypeIdx,
46604656
case G_INTRINSIC_TRUNC:
46614657
case G_FCOS:
46624658
case G_FSIN:
4663-
case G_FTAN:
46644659
case G_FSQRT:
46654660
case G_BSWAP:
46664661
case G_BITREVERSE:

llvm/lib/CodeGen/GlobalISel/Utils.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ bool llvm::isKnownNeverNaN(Register Val, const MachineRegisterInfo &MRI,
821821
case TargetOpcode::G_FREM:
822822
case TargetOpcode::G_FSIN:
823823
case TargetOpcode::G_FCOS:
824-
case TargetOpcode::G_FTAN:
825824
case TargetOpcode::G_FMA:
826825
case TargetOpcode::G_FMAD:
827826
if (SNaN)
@@ -1702,7 +1701,6 @@ bool llvm::isPreISelGenericFloatingPointOpcode(unsigned Opc) {
17021701
case TargetOpcode::G_FREM:
17031702
case TargetOpcode::G_FRINT:
17041703
case TargetOpcode::G_FSIN:
1705-
case TargetOpcode::G_FTAN:
17061704
case TargetOpcode::G_FSQRT:
17071705
case TargetOpcode::G_FSUB:
17081706
case TargetOpcode::G_INTRINSIC_ROUND:

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4483,11 +4483,6 @@ void SelectionDAGLegalize::ConvertNodeToLibcall(SDNode *Node) {
44834483
RTLIB::COS_F80, RTLIB::COS_F128,
44844484
RTLIB::COS_PPCF128, Results);
44854485
break;
4486-
case ISD::FTAN:
4487-
case ISD::STRICT_FTAN:
4488-
ExpandFPLibCall(Node, RTLIB::TAN_F32, RTLIB::TAN_F64, RTLIB::TAN_F80,
4489-
RTLIB::TAN_F128, RTLIB::TAN_PPCF128, Results);
4490-
break;
44914486
case ISD::FSINCOS:
44924487
// Expand into sincos libcall.
44934488
ExpandSinCosLibCall(Node, Results);
@@ -5438,7 +5433,6 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node) {
54385433
case ISD::FSQRT:
54395434
case ISD::FSIN:
54405435
case ISD::FCOS:
5441-
case ISD::FTAN:
54425436
case ISD::FLOG:
54435437
case ISD::FLOG2:
54445438
case ISD::FLOG10:
@@ -5463,7 +5457,6 @@ void SelectionDAGLegalize::PromoteNode(SDNode *Node) {
54635457
case ISD::STRICT_FSQRT:
54645458
case ISD::STRICT_FSIN:
54655459
case ISD::STRICT_FCOS:
5466-
case ISD::STRICT_FTAN:
54675460
case ISD::STRICT_FLOG:
54685461
case ISD::STRICT_FLOG2:
54695462
case ISD::STRICT_FLOG10:

llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ void DAGTypeLegalizer::SoftenFloatResult(SDNode *N, unsigned ResNo) {
131131
case ISD::FSQRT: R = SoftenFloatRes_FSQRT(N); break;
132132
case ISD::STRICT_FSUB:
133133
case ISD::FSUB: R = SoftenFloatRes_FSUB(N); break;
134-
case ISD::STRICT_FTAN:
135-
case ISD::FTAN: R = SoftenFloatRes_FTAN(N); break;
136134
case ISD::STRICT_FTRUNC:
137135
case ISD::FTRUNC: R = SoftenFloatRes_FTRUNC(N); break;
138136
case ISD::LOAD: R = SoftenFloatRes_LOAD(N); break;
@@ -776,12 +774,6 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FSUB(SDNode *N) {
776774
RTLIB::SUB_PPCF128));
777775
}
778776

779-
SDValue DAGTypeLegalizer::SoftenFloatRes_FTAN(SDNode *N) {
780-
return SoftenFloatRes_Unary(
781-
N, GetFPLibCall(N->getValueType(0), RTLIB::TAN_F32, RTLIB::TAN_F64,
782-
RTLIB::TAN_F80, RTLIB::TAN_F128, RTLIB::TAN_PPCF128));
783-
}
784-
785777
SDValue DAGTypeLegalizer::SoftenFloatRes_FTRUNC(SDNode *N) {
786778
return SoftenFloatRes_Unary(N, GetFPLibCall(N->getValueType(0),
787779
RTLIB::TRUNC_F32,
@@ -1407,10 +1399,6 @@ void DAGTypeLegalizer::ExpandFloatResult(SDNode *N, unsigned ResNo) {
14071399
case ISD::FSQRT: ExpandFloatRes_FSQRT(N, Lo, Hi); break;
14081400
case ISD::STRICT_FSUB:
14091401
case ISD::FSUB: ExpandFloatRes_FSUB(N, Lo, Hi); break;
1410-
case ISD::STRICT_FTAN:
1411-
case ISD::FTAN:
1412-
ExpandFloatRes_FTAN(N, Lo, Hi);
1413-
break;
14141402
case ISD::STRICT_FTRUNC:
14151403
case ISD::FTRUNC: ExpandFloatRes_FTRUNC(N, Lo, Hi); break;
14161404
case ISD::LOAD: ExpandFloatRes_LOAD(N, Lo, Hi); break;
@@ -1780,15 +1768,6 @@ void DAGTypeLegalizer::ExpandFloatRes_FSUB(SDNode *N, SDValue &Lo,
17801768
RTLIB::SUB_PPCF128), Lo, Hi);
17811769
}
17821770

1783-
void DAGTypeLegalizer::ExpandFloatRes_FTAN(SDNode *N, SDValue &Lo,
1784-
SDValue &Hi) {
1785-
ExpandFloatRes_Unary(N,
1786-
GetFPLibCall(N->getValueType(0), RTLIB::TAN_F32,
1787-
RTLIB::TAN_F64, RTLIB::TAN_F80,
1788-
RTLIB::TAN_F128, RTLIB::TAN_PPCF128),
1789-
Lo, Hi);
1790-
}
1791-
17921771
void DAGTypeLegalizer::ExpandFloatRes_FTRUNC(SDNode *N,
17931772
SDValue &Lo, SDValue &Hi) {
17941773
ExpandFloatRes_Unary(N, GetFPLibCall(N->getValueType(0),
@@ -2500,7 +2479,6 @@ void DAGTypeLegalizer::PromoteFloatResult(SDNode *N, unsigned ResNo) {
25002479
case ISD::FSIN:
25012480
case ISD::FSQRT:
25022481
case ISD::FTRUNC:
2503-
case ISD::FTAN:
25042482
case ISD::FCANONICALIZE: R = PromoteFloatRes_UnaryOp(N); break;
25052483

25062484
// Binary FP Operations
@@ -2934,7 +2912,6 @@ void DAGTypeLegalizer::SoftPromoteHalfResult(SDNode *N, unsigned ResNo) {
29342912
case ISD::FSIN:
29352913
case ISD::FSQRT:
29362914
case ISD::FTRUNC:
2937-
case ISD::FTAN:
29382915
case ISD::FCANONICALIZE: R = SoftPromoteHalfRes_UnaryOp(N); break;
29392916

29402917
// Binary FP Operations

llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ class LLVM_LIBRARY_VISIBILITY DAGTypeLegalizer {
567567
SDValue SoftenFloatRes_FSIN(SDNode *N);
568568
SDValue SoftenFloatRes_FSQRT(SDNode *N);
569569
SDValue SoftenFloatRes_FSUB(SDNode *N);
570-
SDValue SoftenFloatRes_FTAN(SDNode *N);
571570
SDValue SoftenFloatRes_FTRUNC(SDNode *N);
572571
SDValue SoftenFloatRes_LOAD(SDNode *N);
573572
SDValue SoftenFloatRes_ATOMIC_LOAD(SDNode *N);
@@ -649,7 +648,6 @@ class LLVM_LIBRARY_VISIBILITY DAGTypeLegalizer {
649648
void ExpandFloatRes_FSIN (SDNode *N, SDValue &Lo, SDValue &Hi);
650649
void ExpandFloatRes_FSQRT (SDNode *N, SDValue &Lo, SDValue &Hi);
651650
void ExpandFloatRes_FSUB (SDNode *N, SDValue &Lo, SDValue &Hi);
652-
void ExpandFloatRes_FTAN(SDNode *N, SDValue &Lo, SDValue &Hi);
653651
void ExpandFloatRes_FTRUNC (SDNode *N, SDValue &Lo, SDValue &Hi);
654652
void ExpandFloatRes_LOAD (SDNode *N, SDValue &Lo, SDValue &Hi);
655653
void ExpandFloatRes_XINT_TO_FP(SDNode *N, SDValue &Lo, SDValue &Hi);

llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
395395
case ISD::FSQRT:
396396
case ISD::FSIN:
397397
case ISD::FCOS:
398-
case ISD::FTAN:
399398
case ISD::FLDEXP:
400399
case ISD::FPOWI:
401400
case ISD::FPOW:

llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ void DAGTypeLegalizer::ScalarizeVectorResult(SDNode *N, unsigned ResNo) {
108108
case ISD::FROUNDEVEN:
109109
case ISD::FSIN:
110110
case ISD::FSQRT:
111-
case ISD::FTAN:
112111
case ISD::FTRUNC:
113112
case ISD::SIGN_EXTEND:
114113
case ISD::SINT_TO_FP:
@@ -1141,7 +1140,6 @@ void DAGTypeLegalizer::SplitVectorResult(SDNode *N, unsigned ResNo) {
11411140
case ISD::VP_FROUNDEVEN:
11421141
case ISD::FSIN:
11431142
case ISD::FSQRT: case ISD::VP_SQRT:
1144-
case ISD::FTAN:
11451143
case ISD::FTRUNC:
11461144
case ISD::VP_FROUNDTOZERO:
11471145
case ISD::SINT_TO_FP:
@@ -4392,7 +4390,6 @@ void DAGTypeLegalizer::WidenVectorResult(SDNode *N, unsigned ResNo) {
43924390
case ISD::FROUNDEVEN:
43934391
case ISD::FSIN:
43944392
case ISD::FSQRT:
4395-
case ISD::FTAN:
43964393
case ISD::FTRUNC:
43974394
if (unrollExpandedOp())
43984395
break;

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5303,7 +5303,6 @@ bool SelectionDAG::isKnownNeverNaN(SDValue Op, bool SNaN, unsigned Depth) const
53035303
case ISD::FREM:
53045304
case ISD::FSIN:
53055305
case ISD::FCOS:
5306-
case ISD::FTAN:
53075306
case ISD::FMA:
53085307
case ISD::FMAD: {
53095308
if (SNaN)

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6690,7 +6690,6 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
66906690
case Intrinsic::fabs:
66916691
case Intrinsic::sin:
66926692
case Intrinsic::cos:
6693-
case Intrinsic::tan:
66946693
case Intrinsic::exp10:
66956694
case Intrinsic::floor:
66966695
case Intrinsic::ceil:
@@ -6707,9 +6706,6 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
67076706
case Intrinsic::fabs: Opcode = ISD::FABS; break;
67086707
case Intrinsic::sin: Opcode = ISD::FSIN; break;
67096708
case Intrinsic::cos: Opcode = ISD::FCOS; break;
6710-
case Intrinsic::tan:
6711-
Opcode = ISD::FTAN;
6712-
break;
67136709
case Intrinsic::exp10: Opcode = ISD::FEXP10; break;
67146710
case Intrinsic::floor: Opcode = ISD::FFLOOR; break;
67156711
case Intrinsic::ceil: Opcode = ISD::FCEIL; break;
@@ -9084,12 +9080,6 @@ void SelectionDAGBuilder::visitCall(const CallInst &I) {
90849080
if (visitUnaryFloatCall(I, ISD::FCOS))
90859081
return;
90869082
break;
9087-
case LibFunc_tan:
9088-
case LibFunc_tanf:
9089-
case LibFunc_tanl:
9090-
if (visitUnaryFloatCall(I, ISD::FTAN))
9091-
return;
9092-
break;
90939083
case LibFunc_sqrt:
90949084
case LibFunc_sqrtf:
90959085
case LibFunc_sqrtl:

llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const {
210210
case ISD::FCOS: return "fcos";
211211
case ISD::STRICT_FCOS: return "strict_fcos";
212212
case ISD::FSINCOS: return "fsincos";
213-
case ISD::FTAN: return "ftan";
214-
case ISD::STRICT_FTAN: return "strict_ftan";
215213
case ISD::FTRUNC: return "ftrunc";
216214
case ISD::STRICT_FTRUNC: return "strict_ftrunc";
217215
case ISD::FFLOOR: return "ffloor";

llvm/lib/CodeGen/TargetLoweringBase.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ void TargetLoweringBase::InitLibcalls(const Triple &TT) {
141141
setLibcallName(RTLIB::EXP10_F128, "exp10f128");
142142
setLibcallName(RTLIB::SIN_F128, "sinf128");
143143
setLibcallName(RTLIB::COS_F128, "cosf128");
144-
setLibcallName(RTLIB::TAN_F128, "tanf128");
145144
setLibcallName(RTLIB::SINCOS_F128, "sincosf128");
146145
setLibcallName(RTLIB::POW_F128, "powf128");
147146
setLibcallName(RTLIB::POW_FINITE_F128, "__powf128_finite");
@@ -988,8 +987,7 @@ void TargetLoweringBase::initActions() {
988987
setOperationAction({ISD::FCBRT, ISD::FLOG, ISD::FLOG2, ISD::FLOG10, ISD::FEXP,
989988
ISD::FEXP2, ISD::FEXP10, ISD::FFLOOR, ISD::FNEARBYINT,
990989
ISD::FCEIL, ISD::FRINT, ISD::FTRUNC, ISD::LROUND,
991-
ISD::LLROUND, ISD::LRINT, ISD::LLRINT, ISD::FROUNDEVEN,
992-
ISD::FTAN},
990+
ISD::LLROUND, ISD::LRINT, ISD::LLRINT, ISD::FROUNDEVEN},
993991
{MVT::f32, MVT::f64, MVT::f128}, Expand);
994992

995993
// Default ISD::TRAP to expand (which turns it into abort).

llvm/lib/Target/DirectX/DXIL.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@ def Cos : DXILOpMapping<12, unary, int_cos,
266266
def Sin : DXILOpMapping<13, unary, int_sin,
267267
"Returns sine(theta) for theta in radians.",
268268
[llvm_halforfloat_ty, LLVMMatchType<0>]>;
269-
def Tan : DXILOpMapping<14, unary, int_tan,
270-
"Returns tangent(theta) for theta in radians.",
271-
[llvm_halforfloat_ty, LLVMMatchType<0>]>;
272269
def Exp2 : DXILOpMapping<21, unary, int_exp2,
273270
"Returns the base 2 exponential, or 2**x, of the specified value."
274271
"exp2(x) = 2**x.",

0 commit comments

Comments
 (0)