LowerOperation takes a dag
authorChris Lattner <sabre@nondot.org>
Sat, 14 May 2005 05:50:48 +0000 (05:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 14 May 2005 05:50:48 +0000 (05:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22004 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 4702fd422dc4f64f9dc2ebc7171cbd981c9a6c12..3aa45289b8fb4f3b347431a922939408e015e36e 100644 (file)
@@ -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
index d2cde3489607e817429d2f6ce6814482e949ae1e..c08232c7f00228b5e2d53396f8e71fbb5b0a49e5 100644 (file)
@@ -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();