[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h

Evan Cheng evan.cheng at apple.com
Mon Jan 16 16:32:49 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAG.h updated: 1.84 -> 1.85
---
Log message:

Yet another getTargetNode() variant. I promise one of these days I'll fix
tblgen so this is unnecessary.


---
Diffs of the changes:  (+12 -0)

 SelectionDAG.h |   12 ++++++++++++
 1 files changed, 12 insertions(+)


Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.84 llvm/include/llvm/CodeGen/SelectionDAG.h:1.85
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.84	Mon Jan  9 12:29:18 2006
+++ llvm/include/llvm/CodeGen/SelectionDAG.h	Mon Jan 16 18:32:38 2006
@@ -476,6 +476,18 @@
   }
   SDOperand getTargetNode(unsigned Opcode, MVT::ValueType VT1,
                           MVT::ValueType VT2, MVT::ValueType VT3,
+                          SDOperand Op1, SDOperand Op2) {
+    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);
+    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) {






More information about the llvm-commits mailing list