@@ -197,7 +197,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_Unary(SDNode *N, RTLIB::Libcall LC) {
197
197
SDValue Chain = IsStrict ? N->getOperand (0 ) : SDValue ();
198
198
TargetLowering::MakeLibCallOptions CallOptions;
199
199
EVT OpVT = N->getOperand (0 + Offset).getValueType ();
200
- CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ), true );
200
+ CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ));
201
201
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Op,
202
202
CallOptions, SDLoc (N),
203
203
Chain);
@@ -218,7 +218,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_Binary(SDNode *N, RTLIB::Libcall LC) {
218
218
TargetLowering::MakeLibCallOptions CallOptions;
219
219
EVT OpsVT[2 ] = { N->getOperand (0 + Offset).getValueType (),
220
220
N->getOperand (1 + Offset).getValueType () };
221
- CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ), true );
221
+ CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ));
222
222
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Ops,
223
223
CallOptions, SDLoc (N),
224
224
Chain);
@@ -558,7 +558,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FMA(SDNode *N) {
558
558
EVT OpsVT[3 ] = { N->getOperand (0 + Offset).getValueType (),
559
559
N->getOperand (1 + Offset).getValueType (),
560
560
N->getOperand (2 + Offset).getValueType () };
561
- CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ), true );
561
+ CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ));
562
562
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG,
563
563
GetFPLibCall (N->getValueType (0 ),
564
564
RTLIB::FMA_F32,
@@ -642,7 +642,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FP_EXTEND(SDNode *N) {
642
642
assert (LC != RTLIB::UNKNOWN_LIBCALL && " Unsupported FP_EXTEND!" );
643
643
TargetLowering::MakeLibCallOptions CallOptions;
644
644
EVT OpVT = N->getOperand (IsStrict ? 1 : 0 ).getValueType ();
645
- CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ), true );
645
+ CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ));
646
646
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Op,
647
647
CallOptions, SDLoc (N),
648
648
Chain);
@@ -658,7 +658,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FP16_TO_FP(SDNode *N) {
658
658
SDValue Op = N->getOperand (0 );
659
659
TargetLowering::MakeLibCallOptions CallOptions;
660
660
EVT OpsVT[1 ] = { N->getOperand (0 ).getValueType () };
661
- CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ), true );
661
+ CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ));
662
662
SDValue Res32 = TLI.makeLibCall (DAG, RTLIB::FPEXT_F16_F32, MidVT, Op,
663
663
CallOptions, SDLoc (N)).first ;
664
664
if (N->getValueType (0 ) == MVT::f32 )
@@ -694,7 +694,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FP_ROUND(SDNode *N) {
694
694
assert (LC != RTLIB::UNKNOWN_LIBCALL && " Unsupported FP_ROUND!" );
695
695
TargetLowering::MakeLibCallOptions CallOptions;
696
696
EVT OpVT = N->getOperand (IsStrict ? 1 : 0 ).getValueType ();
697
- CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ), true );
697
+ CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ));
698
698
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Op,
699
699
CallOptions, SDLoc (N),
700
700
Chain);
@@ -742,7 +742,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_ExpOp(SDNode *N) {
742
742
TargetLowering::MakeLibCallOptions CallOptions;
743
743
EVT OpsVT[2 ] = { N->getOperand (0 + Offset).getValueType (),
744
744
N->getOperand (1 + Offset).getValueType () };
745
- CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ), true );
745
+ CallOptions.setTypeListBeforeSoften (OpsVT, N->getValueType (0 ));
746
746
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Ops,
747
747
CallOptions, SDLoc (N),
748
748
Chain);
@@ -779,7 +779,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_FFREXP(SDNode *N) {
779
779
780
780
// TODO: setTypeListBeforeSoften can't properly express multiple return types,
781
781
// but we only really need to handle the 0th one for softening anyway.
782
- CallOptions.setTypeListBeforeSoften ({OpsVT}, VT0, true )
782
+ CallOptions.setTypeListBeforeSoften ({OpsVT}, VT0)
783
783
.setOpsTypeOverrides (CallOpsTypeOverrides);
784
784
785
785
auto [ReturnVal, Chain] = TLI.makeLibCall (DAG, LC, NVT0, Ops, CallOptions, DL,
@@ -828,7 +828,7 @@ bool DAGTypeLegalizer::SoftenFloatRes_UnaryWithTwoFPResults(
828
828
TargetLowering::MakeLibCallOptions CallOptions;
829
829
// TODO: setTypeListBeforeSoften can't properly express multiple return types,
830
830
// but since both returns have the same type it should be okay.
831
- CallOptions.setTypeListBeforeSoften ({OpsVT}, VT, true )
831
+ CallOptions.setTypeListBeforeSoften ({OpsVT}, VT)
832
832
.setOpsTypeOverrides (CallOpsTypeOverrides);
833
833
834
834
auto [ReturnVal, Chain] = TLI.makeLibCall (DAG, LC, NVT, Ops, CallOptions, DL,
@@ -1100,7 +1100,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_XINT_TO_FP(SDNode *N) {
1100
1100
NVT, N->getOperand (IsStrict ? 1 : 0 ));
1101
1101
TargetLowering::MakeLibCallOptions CallOptions;
1102
1102
CallOptions.setIsSigned (Signed);
1103
- CallOptions.setTypeListBeforeSoften (SVT, RVT, true );
1103
+ CallOptions.setTypeListBeforeSoften (SVT, RVT);
1104
1104
std::pair<SDValue, SDValue> Tmp =
1105
1105
TLI.makeLibCall (DAG, LC, TLI.getTypeToTransformTo (*DAG.getContext (), RVT),
1106
1106
Op, CallOptions, dl, Chain);
@@ -1222,7 +1222,7 @@ SDValue DAGTypeLegalizer::SoftenFloatOp_FP_ROUND(SDNode *N) {
1222
1222
SDValue Chain = IsStrict ? N->getOperand (0 ) : SDValue ();
1223
1223
Op = GetSoftenedFloat (Op);
1224
1224
TargetLowering::MakeLibCallOptions CallOptions;
1225
- CallOptions.setTypeListBeforeSoften (SVT, RVT, true );
1225
+ CallOptions.setTypeListBeforeSoften (SVT, RVT);
1226
1226
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, RVT, Op,
1227
1227
CallOptions, SDLoc (N),
1228
1228
Chain);
@@ -1298,7 +1298,7 @@ SDValue DAGTypeLegalizer::SoftenFloatOp_FP_TO_XINT(SDNode *N) {
1298
1298
Op = GetSoftenedFloat (Op);
1299
1299
SDValue Chain = IsStrict ? N->getOperand (0 ) : SDValue ();
1300
1300
TargetLowering::MakeLibCallOptions CallOptions;
1301
- CallOptions.setTypeListBeforeSoften (SVT, RVT, true );
1301
+ CallOptions.setTypeListBeforeSoften (SVT, RVT);
1302
1302
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Op,
1303
1303
CallOptions, dl, Chain);
1304
1304
@@ -1453,7 +1453,7 @@ SDValue DAGTypeLegalizer::SoftenFloatOp_Unary(SDNode *N, RTLIB::Libcall LC) {
1453
1453
SDValue Chain = IsStrict ? N->getOperand (0 ) : SDValue ();
1454
1454
TargetLowering::MakeLibCallOptions CallOptions;
1455
1455
EVT OpVT = N->getOperand (0 + Offset).getValueType ();
1456
- CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ), true );
1456
+ CallOptions.setTypeListBeforeSoften (OpVT, N->getValueType (0 ));
1457
1457
std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall (DAG, LC, NVT, Op,
1458
1458
CallOptions, SDLoc (N),
1459
1459
Chain);
@@ -3567,7 +3567,7 @@ SDValue DAGTypeLegalizer::SoftPromoteHalfRes_FP_ROUND(SDNode *N) {
3567
3567
SDValue Chain = IsStrict ? N->getOperand (0 ) : SDValue ();
3568
3568
Op = GetSoftenedFloat (Op);
3569
3569
TargetLowering::MakeLibCallOptions CallOptions;
3570
- CallOptions.setTypeListBeforeSoften (SVT, RVT, true );
3570
+ CallOptions.setTypeListBeforeSoften (SVT, RVT);
3571
3571
std::pair<SDValue, SDValue> Tmp =
3572
3572
TLI.makeLibCall (DAG, LC, RVT, Op, CallOptions, SDLoc (N), Chain);
3573
3573
if (IsStrict)
0 commit comments