[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 8 11:25:54 PST 2005
Changes in directory llvm/include/llvm/Target:
TargetLowering.h updated: 1.1 -> 1.2
---
Log message:
Make LowerCallTo more generic and useful.
---
Diffs of the changes: (+6 -3)
Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.1 llvm/include/llvm/Target/TargetLowering.h:1.2
--- llvm/include/llvm/Target/TargetLowering.h:1.1 Fri Jan 7 01:44:22 2005
+++ llvm/include/llvm/Target/TargetLowering.h Sat Jan 8 13:25:39 2005
@@ -165,10 +165,13 @@
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
More information about the llvm-commits
mailing list