[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h SelectionDAGNodes.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 21 11:50:10 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.44 -> 1.45
SelectionDAGNodes.h updated: 1.59 -> 1.60
---
Log message:
Add 5-operand version of SelectNodeTo
---
Diffs of the changes: (+15 -0)
SelectionDAG.h | 3 +++
SelectionDAGNodes.h | 12 ++++++++++++
2 files changed, 15 insertions(+)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.44 llvm/include/llvm/CodeGen/SelectionDAG.h:1.45
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.44 Fri Aug 19 17:31:34 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Sun Aug 21 13:49:58 2005
@@ -229,6 +229,9 @@
SDOperand Op1, SDOperand Op2, SDOperand Op3);
void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
SDOperand Op1, SDOperand Op2, SDOperand Op3, SDOperand Op4);
+ void SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc,
+ SDOperand Op1, SDOperand Op2, SDOperand Op3, SDOperand Op4,
+ SDOperand Op5);
SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT,
SDOperand Op1) {
Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.59 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.60
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.59 Fri Aug 19 17:31:34 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Sun Aug 21 13:49:58 2005
@@ -678,6 +678,18 @@
Op0.Val->Uses.push_back(this); Op1.Val->Uses.push_back(this);
Op2.Val->Uses.push_back(this); Op3.Val->Uses.push_back(this);
}
+ void setOperands(SDOperand Op0, SDOperand Op1, SDOperand Op2, SDOperand Op3,
+ SDOperand Op4) {
+ Operands.reserve(5);
+ Operands.push_back(Op0);
+ Operands.push_back(Op1);
+ Operands.push_back(Op2);
+ Operands.push_back(Op3);
+ Operands.push_back(Op4);
+ Op0.Val->Uses.push_back(this); Op1.Val->Uses.push_back(this);
+ Op2.Val->Uses.push_back(this); Op3.Val->Uses.push_back(this);
+ Op4.Val->Uses.push_back(this);
+ }
void addUser(SDNode *User) {
Uses.push_back(User);
}
More information about the llvm-commits
mailing list