Fix a huge annoyance: SelectNodeTo took types before the opcode unlike

every other SD API.  Fix it to take the opcode before the types.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-08-26 16:36:26 +00:00
parent 22b7dfa645
commit 2bb06cdf27
3 changed files with 102 additions and 104 deletions

View File

@@ -223,22 +223,22 @@ public:
/// specified node to have the specified return type, Target opcode, and
/// operands. Note that target opcodes are stored as
/// ISD::BUILTIN_OP_END+TargetOpcode in the node opcode field.
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc);
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT);
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT,
SDOperand Op1);
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT,
SDOperand Op1, SDOperand Op2);
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT,
SDOperand Op1, SDOperand Op2, SDOperand Op3);
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT,
SDOperand Op1, SDOperand Op2, SDOperand Op3, SDOperand Op4);
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT,
SDOperand Op1, SDOperand Op2, SDOperand Op3, SDOperand Op4,
SDOperand Op5);
void SelectNodeTo(SDNode *N, MVT::ValueType VT1, MVT::ValueType VT2,
unsigned TargetOpc, SDOperand Op1, SDOperand Op2);
void SelectNodeTo(SDNode *N, MVT::ValueType VT1, MVT::ValueType VT2,
unsigned TargetOpc, SDOperand Op1, SDOperand Op2,
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT1,
MVT::ValueType VT2, SDOperand Op1, SDOperand Op2);
void SelectNodeTo(SDNode *N, unsigned TargetOpc, MVT::ValueType VT1,
MVT::ValueType VT2, SDOperand Op1, SDOperand Op2,
SDOperand Op3);
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,