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

Chris Lattner lattner at cs.uiuc.edu
Sun Dec 18 13:01:05 PST 2005



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAG.h updated: 1.79 -> 1.80
---
Log message:

Add an accessor


---
Diffs of the changes:  (+11 -1)

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


Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.79 llvm/include/llvm/CodeGen/SelectionDAG.h:1.80
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.79	Fri Dec 16 19:44:51 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h	Sun Dec 18 15:00:53 2005
@@ -198,7 +198,17 @@
     AllNodes.push_back(NN);
     return NN;
   }
-
+  /// getCall - Note that this destroys the vector of RetVals passed in.
+  ///
+  SDNode *getCall(std::vector<MVT::ValueType> &RetVals, SDOperand Chain,
+                  SDOperand Callee, SDOperand Flag, bool isTailCall = false) {
+    SDNode *NN = new SDNode(isTailCall ? ISD::TAILCALL : ISD::CALL, Chain,
+                            Callee, Flag);
+    setNodeValueTypes(NN, RetVals);
+    AllNodes.push_back(NN);
+    return NN;
+  }
+  
   /// getCall - This is identical to the one above, and should be used for calls
   /// where arguments are passed in physical registers.  This destroys the
   /// RetVals and ArgsInRegs vectors.






More information about the llvm-commits mailing list