mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
New getNode() variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25156 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6da8d99f70
commit
909addffc3
@ -242,9 +242,6 @@ public:
|
||||
SDOperand getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
SDOperand N1, SDOperand N2, SDOperand N3, SDOperand N4,
|
||||
SDOperand N5);
|
||||
SDOperand getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
SDOperand N1, SDOperand N2, SDOperand N3, SDOperand N4,
|
||||
SDOperand N5, SDOperand N6);
|
||||
SDOperand getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
std::vector<SDOperand> &Children);
|
||||
SDOperand getNode(unsigned Opcode, std::vector<MVT::ValueType> &ResultTys,
|
||||
@ -357,7 +354,30 @@ public:
|
||||
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,
|
||||
SDOperand Op1, SDOperand Op2, SDOperand Op3,
|
||||
SDOperand Op4, SDOperand Op5, SDOperand Op6) {
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Op1, Op2, Op3, Op4, Op5, Op6);
|
||||
std::vector<SDOperand> Ops;
|
||||
Ops.reserve(6);
|
||||
Ops.push_back(Op1);
|
||||
Ops.push_back(Op2);
|
||||
Ops.push_back(Op3);
|
||||
Ops.push_back(Op4);
|
||||
Ops.push_back(Op5);
|
||||
Ops.push_back(Op6);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Ops);
|
||||
}
|
||||
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,
|
||||
SDOperand Op1, SDOperand Op2, SDOperand Op3,
|
||||
SDOperand Op4, SDOperand Op5, SDOperand Op6,
|
||||
SDOperand Op7) {
|
||||
std::vector<SDOperand> Ops;
|
||||
Ops.reserve(7);
|
||||
Ops.push_back(Op1);
|
||||
Ops.push_back(Op2);
|
||||
Ops.push_back(Op3);
|
||||
Ops.push_back(Op4);
|
||||
Ops.push_back(Op5);
|
||||
Ops.push_back(Op6);
|
||||
Ops.push_back(Op7);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VT, Ops);
|
||||
}
|
||||
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,
|
||||
std::vector<SDOperand> &Ops) {
|
||||
@ -454,6 +474,43 @@ public:
|
||||
Ops.push_back(Op7);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, ResultTys, Ops);
|
||||
}
|
||||
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT1,
|
||||
MVT::ValueType VT2, MVT::ValueType VT3,
|
||||
SDOperand Op1, SDOperand Op2,
|
||||
SDOperand Op3, SDOperand Op4, SDOperand Op5,
|
||||
SDOperand Op6) {
|
||||
std::vector<MVT::ValueType> ResultTys;
|
||||
ResultTys.push_back(VT1);
|
||||
ResultTys.push_back(VT2);
|
||||
ResultTys.push_back(VT3);
|
||||
std::vector<SDOperand> Ops;
|
||||
Ops.push_back(Op1);
|
||||
Ops.push_back(Op2);
|
||||
Ops.push_back(Op3);
|
||||
Ops.push_back(Op4);
|
||||
Ops.push_back(Op5);
|
||||
Ops.push_back(Op6);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, ResultTys, Ops);
|
||||
}
|
||||
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT1,
|
||||
MVT::ValueType VT2, MVT::ValueType VT3,
|
||||
SDOperand Op1, SDOperand Op2,
|
||||
SDOperand Op3, SDOperand Op4, SDOperand Op5,
|
||||
SDOperand Op6, SDOperand Op7) {
|
||||
std::vector<MVT::ValueType> ResultTys;
|
||||
ResultTys.push_back(VT1);
|
||||
ResultTys.push_back(VT2);
|
||||
ResultTys.push_back(VT3);
|
||||
std::vector<SDOperand> Ops;
|
||||
Ops.push_back(Op1);
|
||||
Ops.push_back(Op2);
|
||||
Ops.push_back(Op3);
|
||||
Ops.push_back(Op4);
|
||||
Ops.push_back(Op5);
|
||||
Ops.push_back(Op6);
|
||||
Ops.push_back(Op7);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, ResultTys, Ops);
|
||||
}
|
||||
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT1,
|
||||
MVT::ValueType VT2, std::vector<SDOperand> &Ops) {
|
||||
std::vector<MVT::ValueType> ResultTys;
|
||||
|
@ -1200,20 +1200,6 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
return getNode(Opcode, VT, Ops);
|
||||
}
|
||||
|
||||
SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT,
|
||||
SDOperand N1, SDOperand N2, SDOperand N3,
|
||||
SDOperand N4, SDOperand N5, SDOperand N6) {
|
||||
std::vector<SDOperand> Ops;
|
||||
Ops.reserve(6);
|
||||
Ops.push_back(N1);
|
||||
Ops.push_back(N2);
|
||||
Ops.push_back(N3);
|
||||
Ops.push_back(N4);
|
||||
Ops.push_back(N5);
|
||||
Ops.push_back(N6);
|
||||
return getNode(Opcode, VT, Ops);
|
||||
}
|
||||
|
||||
// setAdjCallChain - This method changes the token chain of an
|
||||
// CALLSEQ_START/END node to be the specified operand.
|
||||
void SDNode::setAdjCallChain(SDOperand N) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user