[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 13 00:54:58 PST 2006
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.97 -> 1.98
---
Log message:
Add a method
---
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.97 llvm/include/llvm/CodeGen/SelectionDAG.h:1.98
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.97 Thu Feb 9 16:11:03 2006
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Mon Feb 13 02:54:46 2006
@@ -196,6 +196,18 @@
/// getZeroExtendInReg - Return the expression required to zero extend the Op
/// value assuming it was the smaller SrcTy value.
SDOperand getZeroExtendInReg(SDOperand Op, MVT::ValueType SrcTy);
+
+ /// getCALLSEQ_START - Return a new CALLSEQ_START node, which always must have
+ /// a flag result (to ensure it's not CSE'd).
+ SDOperand getCALLSEQ_START(SDOperand Chain, SDOperand Op) {
+ std::vector<MVT::ValueType> ResultTys;
+ ResultTys.push_back(MVT::Other);
+ ResultTys.push_back(MVT::Flag);
+ std::vector<SDOperand> Ops;
+ Ops.push_back(Chain);
+ Ops.push_back(Op);
+ return getNode(ISD::CALLSEQ_START, ResultTys, Ops);
+ }
/// getNode - Gets or creates the specified node.
///
More information about the llvm-commits
mailing list