mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
ArrayRefize getMachineNode(). No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5252,14 +5252,14 @@ SDNode *SelectionDAG::MorphNodeTo(SDNode *N, unsigned Opc,
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT) {
|
||||
SDVTList VTs = getVTList(VT);
|
||||
return getMachineNode(Opcode, dl, VTs, 0, 0);
|
||||
return getMachineNode(Opcode, dl, VTs, ArrayRef<SDValue>());
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT, SDValue Op1) {
|
||||
SDVTList VTs = getVTList(VT);
|
||||
SDValue Ops[] = { Op1 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5267,7 +5267,7 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT,
|
||||
SDValue Op1, SDValue Op2) {
|
||||
SDVTList VTs = getVTList(VT);
|
||||
SDValue Ops[] = { Op1, Op2 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5275,20 +5275,20 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT,
|
||||
SDValue Op1, SDValue Op2, SDValue Op3) {
|
||||
SDVTList VTs = getVTList(VT);
|
||||
SDValue Ops[] = { Op1, Op2, Op3 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT,
|
||||
const SDValue *Ops, unsigned NumOps) {
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(VT);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, NumOps);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT1, EVT VT2) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
return getMachineNode(Opcode, dl, VTs, 0, 0);
|
||||
return getMachineNode(Opcode, dl, VTs, ArrayRef<SDValue>());
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5296,7 +5296,7 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
EVT VT1, EVT VT2, SDValue Op1) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
SDValue Ops[] = { Op1 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5304,7 +5304,7 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
EVT VT1, EVT VT2, SDValue Op1, SDValue Op2) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
SDValue Ops[] = { Op1, Op2 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5313,15 +5313,15 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
SDValue Op2, SDValue Op3) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
SDValue Ops[] = { Op1, Op2, Op3 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
EVT VT1, EVT VT2,
|
||||
const SDValue *Ops, unsigned NumOps) {
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(VT1, VT2);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, NumOps);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5330,7 +5330,7 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
SDValue Op1, SDValue Op2) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3);
|
||||
SDValue Ops[] = { Op1, Op2 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
@@ -5339,39 +5339,41 @@ SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
SDValue Op1, SDValue Op2, SDValue Op3) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3);
|
||||
SDValue Ops[] = { Op1, Op2, Op3 };
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, array_lengthof(Ops));
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
EVT VT1, EVT VT2, EVT VT3,
|
||||
const SDValue *Ops, unsigned NumOps) {
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, NumOps);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl, EVT VT1,
|
||||
EVT VT2, EVT VT3, EVT VT4,
|
||||
const SDValue *Ops, unsigned NumOps) {
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(VT1, VT2, VT3, VT4);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, NumOps);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc dl,
|
||||
ArrayRef<EVT> ResultTys,
|
||||
const SDValue *Ops, unsigned NumOps) {
|
||||
ArrayRef<SDValue> Ops) {
|
||||
SDVTList VTs = getVTList(&ResultTys[0], ResultTys.size());
|
||||
return getMachineNode(Opcode, dl, VTs, Ops, NumOps);
|
||||
return getMachineNode(Opcode, dl, VTs, Ops);
|
||||
}
|
||||
|
||||
MachineSDNode *
|
||||
SelectionDAG::getMachineNode(unsigned Opcode, DebugLoc DL, SDVTList VTs,
|
||||
const SDValue *Ops, unsigned NumOps) {
|
||||
ArrayRef<SDValue> OpsArray) {
|
||||
bool DoCSE = VTs.VTs[VTs.NumVTs-1] != MVT::Glue;
|
||||
MachineSDNode *N;
|
||||
void *IP = 0;
|
||||
const SDValue *Ops = OpsArray.data();
|
||||
unsigned NumOps = OpsArray.size();
|
||||
|
||||
if (DoCSE) {
|
||||
FoldingSetNodeID ID;
|
||||
|
||||
@@ -2796,7 +2796,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
// If this is a normal EmitNode command, just create the new node and
|
||||
// add the results to the RecordedNodes list.
|
||||
Res = CurDAG->getMachineNode(TargetOpc, NodeToMatch->getDebugLoc(),
|
||||
VTList, Ops.data(), Ops.size());
|
||||
VTList, Ops);
|
||||
|
||||
// Add all the non-glue/non-chain results to the RecordedNodes list.
|
||||
for (unsigned i = 0, e = VTs.size(); i != e; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user