@@ -5207,80 +5207,78 @@ void SDNode::DropOperands() {
5207
5207
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5208
5208
EVT VT) {
5209
5209
SDVTList VTs = getVTList (VT);
5210
- return SelectNodeTo (N, MachineOpc, VTs, nullptr , 0 );
5210
+ return SelectNodeTo (N, MachineOpc, VTs, None );
5211
5211
}
5212
5212
5213
5213
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5214
5214
EVT VT, SDValue Op1) {
5215
5215
SDVTList VTs = getVTList (VT);
5216
5216
SDValue Ops[] = { Op1 };
5217
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 1 );
5217
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5218
5218
}
5219
5219
5220
5220
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5221
5221
EVT VT, SDValue Op1,
5222
5222
SDValue Op2) {
5223
5223
SDVTList VTs = getVTList (VT);
5224
5224
SDValue Ops[] = { Op1, Op2 };
5225
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 2 );
5225
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5226
5226
}
5227
5227
5228
5228
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5229
5229
EVT VT, SDValue Op1,
5230
5230
SDValue Op2, SDValue Op3) {
5231
5231
SDVTList VTs = getVTList (VT);
5232
5232
SDValue Ops[] = { Op1, Op2, Op3 };
5233
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 3 );
5233
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5234
5234
}
5235
5235
5236
5236
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5237
- EVT VT, const SDValue *Ops,
5238
- unsigned NumOps) {
5237
+ EVT VT, ArrayRef<SDValue> Ops) {
5239
5238
SDVTList VTs = getVTList (VT);
5240
- return SelectNodeTo (N, MachineOpc, VTs, Ops, NumOps );
5239
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5241
5240
}
5242
5241
5243
5242
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5244
- EVT VT1, EVT VT2, const SDValue *Ops,
5245
- unsigned NumOps) {
5243
+ EVT VT1, EVT VT2, ArrayRef<SDValue> Ops) {
5246
5244
SDVTList VTs = getVTList (VT1, VT2);
5247
- return SelectNodeTo (N, MachineOpc, VTs, Ops, NumOps );
5245
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5248
5246
}
5249
5247
5250
5248
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5251
5249
EVT VT1, EVT VT2) {
5252
5250
SDVTList VTs = getVTList (VT1, VT2);
5253
- return SelectNodeTo (N, MachineOpc, VTs, (SDValue *) nullptr , 0 );
5251
+ return SelectNodeTo (N, MachineOpc, VTs, None );
5254
5252
}
5255
5253
5256
5254
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5257
5255
EVT VT1, EVT VT2, EVT VT3,
5258
- const SDValue * Ops, unsigned NumOps ) {
5256
+ ArrayRef< SDValue> Ops) {
5259
5257
SDVTList VTs = getVTList (VT1, VT2, VT3);
5260
- return SelectNodeTo (N, MachineOpc, VTs, Ops, NumOps );
5258
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5261
5259
}
5262
5260
5263
5261
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5264
5262
EVT VT1, EVT VT2, EVT VT3, EVT VT4,
5265
- const SDValue * Ops, unsigned NumOps ) {
5263
+ ArrayRef< SDValue> Ops) {
5266
5264
SDVTList VTs = getVTList (VT1, VT2, VT3, VT4);
5267
- return SelectNodeTo (N, MachineOpc, VTs, Ops, NumOps );
5265
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5268
5266
}
5269
5267
5270
5268
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5271
5269
EVT VT1, EVT VT2,
5272
5270
SDValue Op1) {
5273
5271
SDVTList VTs = getVTList (VT1, VT2);
5274
5272
SDValue Ops[] = { Op1 };
5275
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 1 );
5273
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5276
5274
}
5277
5275
5278
5276
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5279
5277
EVT VT1, EVT VT2,
5280
5278
SDValue Op1, SDValue Op2) {
5281
5279
SDVTList VTs = getVTList (VT1, VT2);
5282
5280
SDValue Ops[] = { Op1, Op2 };
5283
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 2 );
5281
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5284
5282
}
5285
5283
5286
5284
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
@@ -5289,7 +5287,7 @@ SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
5289
5287
SDValue Op3) {
5290
5288
SDVTList VTs = getVTList (VT1, VT2);
5291
5289
SDValue Ops[] = { Op1, Op2, Op3 };
5292
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 3 );
5290
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5293
5291
}
5294
5292
5295
5293
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
@@ -5298,13 +5296,12 @@ SDNode *SelectionDAG::SelectNodeTo(SDNode *N, unsigned MachineOpc,
5298
5296
SDValue Op3) {
5299
5297
SDVTList VTs = getVTList (VT1, VT2, VT3);
5300
5298
SDValue Ops[] = { Op1, Op2, Op3 };
5301
- return SelectNodeTo (N, MachineOpc, VTs, Ops, 3 );
5299
+ return SelectNodeTo (N, MachineOpc, VTs, Ops);
5302
5300
}
5303
5301
5304
5302
SDNode *SelectionDAG::SelectNodeTo (SDNode *N, unsigned MachineOpc,
5305
- SDVTList VTs, const SDValue *Ops,
5306
- unsigned NumOps) {
5307
- N = MorphNodeTo (N, ~MachineOpc, VTs, Ops, NumOps);
5303
+ SDVTList VTs,ArrayRef<SDValue> Ops) {
5304
+ N = MorphNodeTo (N, ~MachineOpc, VTs, Ops.data (), Ops.size ());
5308
5305
// Reset the NodeID to -1.
5309
5306
N->setNodeId (-1 );
5310
5307
return N;
0 commit comments