diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:25:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-08 19:25:39 +0000 |
commit | d4b1c9a938f77b31be88e2ac68b20a035c397275 (patch) | |
tree | 918eab9eb4a25ea8e70e89d4f716c2dafe83b484 | |
parent | 106ff12cb5436f348c3aa375564d737a4b25c42f (diff) | |
download | external_llvm-d4b1c9a938f77b31be88e2ac68b20a035c397275.zip external_llvm-d4b1c9a938f77b31be88e2ac68b20a035c397275.tar.gz external_llvm-d4b1c9a938f77b31be88e2ac68b20a035c397275.tar.bz2 |
Make LowerCallTo more generic and useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19373 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 9d7ccd8..ee1ac36 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -165,10 +165,13 @@ public: LowerArguments(Function &F, SelectionDAG &DAG) = 0; /// LowerCallTo - This hook lowers an abstract call to a function into an - /// actual call. + /// actual call. This returns a pair of operands. The first element is the + /// return value for the function (if RetTy is not VoidTy). The second + /// element is the outgoing token chain. typedef std::vector<std::pair<SDOperand, const Type*> > ArgListTy; - virtual SDNode *LowerCallTo(const Type *RetTy, SDOperand Callee, - ArgListTy &Args, SelectionDAG &DAG) = 0; + virtual std::pair<SDOperand, SDOperand> + LowerCallTo(SDOperand Chain, const Type *RetTy, SDOperand Callee, + ArgListTy &Args, SelectionDAG &DAG) = 0; }; } // end llvm namespace |