diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-05-14 05:50:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-05-14 05:50:48 +0000 |
| commit | 29dcc71d83d0a3c4b5fe83e9211f1c26d9e32732 (patch) | |
| tree | 74decf0074e860a6656c019ee57b84d2d7e2515a /llvm/lib | |
| parent | 9a449003d019f93b38edd5d63b80faa0e216a05e (diff) | |
| download | bcm5719-llvm-29dcc71d83d0a3c4b5fe83e9211f1c26d9e32732.tar.gz bcm5719-llvm-29dcc71d83d0a3c4b5fe83e9211f1c26d9e32732.zip | |
LowerOperation takes a dag
llvm-svn: 22004
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 4702fd422dc..3aa45289b8f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -941,7 +941,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { 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 @@ ExpandIntToFP(bool isSigned, MVT::ValueType DestTy, SDOperand Source) { 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 diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index d2cde348960..c08232c7f00 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -901,7 +901,7 @@ TargetLowering::LowerFrameReturnAddress(bool isFrameAddr, SDOperand Chain, 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(); |

