Add an accessor
authorChris Lattner <sabre@nondot.org>
Sun, 18 Dec 2005 21:00:53 +0000 (21:00 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 18 Dec 2005 21:00:53 +0000 (21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24831 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h

index 94a95ac8950f807c336e77fd033c4f3bc9d0173b..f84918b099345f85dfa4b7d9c6c39e94e6e5bc3a 100644 (file)
@@ -198,7 +198,17 @@ public:
     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.