[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp SelectionDAGISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 13 22:51:05 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.124 -> 1.125
SelectionDAGISel.cpp updated: 1.57 -> 1.58
---
Log message:
LowerOperation takes a dag
---
Diffs of the changes: (+3 -3)
LegalizeDAG.cpp | 4 ++--
SelectionDAGISel.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.124 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.125
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.124 Sat May 14 00:33:54 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Sat May 14 00:50:48 2005
@@ -941,7 +941,7 @@
Ops.push_back(Tmp1); Ops.push_back(Tmp2); Ops.push_back(Tmp3);
Ops.push_back(Tmp4); Ops.push_back(Tmp5);
Result = DAG.getNode(Node->getOpcode(), MVT::Other, Ops);
- Result = TLI.LowerOperation(Result);
+ Result = TLI.LowerOperation(Result, DAG);
Result = LegalizeOp(Result);
break;
}
@@ -2184,7 +2184,7 @@
break; // This case is handled below.
case TargetLowering::Custom:
Source = DAG.getNode(ISD::SINT_TO_FP, DestTy, Source);
- return LegalizeOp(TLI.LowerOperation(Source));
+ return LegalizeOp(TLI.LowerOperation(Source, DAG));
}
// Expand the source, then glue it back together for the call. We must expand
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.57 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.58
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.57 Fri May 13 18:14:17 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Sat May 14 00:50:48 2005
@@ -901,7 +901,7 @@
return std::make_pair(DAG.getConstant(0, getPointerTy()), Chain);
}
-SDOperand TargetLowering::LowerOperation(SDOperand Op) {
+SDOperand TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
assert(0 && "LowerOperation not implemented for this target!");
abort();
return SDOperand();
More information about the llvm-commits
mailing list