[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Jeff Cohen jeffc at jolt-lang.org
Sat Jul 30 11:33:39 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

LegalizeDAG.cpp updated: 1.149 -> 1.150
---
Log message:

Keep tabs and trailing spaces out.

---
Diffs of the changes:  (+15 -14)

 LegalizeDAG.cpp |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.149 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.150
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.149	Fri Jul 29 20:40:57 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp	Sat Jul 30 13:33:25 2005
@@ -271,14 +271,14 @@
                                                       bool isSigned) {
   // First step, figure out the appropriate FP_TO*INT operation to use.
   MVT::ValueType NewOutTy = DestVT;
-  
+
   unsigned OpToUse = 0;
-  
+
   // Scan for the appropriate larger type to use.
   while (1) {
     NewOutTy = (MVT::ValueType)(NewOutTy+1);
     assert(MVT::isInteger(NewOutTy) && "Ran out of possibilities!");
-    
+
     // If the target supports FP_TO_SINT returning this type, use it.
     switch (TLI.getOperationAction(ISD::FP_TO_SINT, NewOutTy)) {
     default: break;
@@ -291,7 +291,7 @@
       break;
     }
     if (OpToUse) break;
-    
+
     // If the target supports FP_TO_UINT of this type, use it.
     switch (TLI.getOperationAction(ISD::FP_TO_UINT, NewOutTy)) {
     default: break;
@@ -304,13 +304,13 @@
       break;
     }
     if (OpToUse) break;
-    
+
     // Otherwise, try a larger type.
   }
-  
+
   // Make sure to legalize any nodes we create here in the next pass.
   NeedsAnotherIteration = true;
-  
+
   // Okay, we found the operation and type to use.  Truncate the result of the
   // extended FP_TO_*INT operation to the desired size.
   return DAG.getNode(ISD::TRUNCATE, DestVT,
@@ -1502,7 +1502,7 @@
     bool isSigned = Node->getOpcode() == ISD::SINT_TO_FP;
     switch (getTypeAction(Node->getOperand(0).getValueType())) {
     case Legal:
-      switch (TLI.getOperationAction(Node->getOpcode(), 
+      switch (TLI.getOperationAction(Node->getOpcode(),
                                      Node->getOperand(0).getValueType())) {
       default: assert(0 && "Unknown operation action!");
       case TargetLowering::Expand:
@@ -1565,7 +1565,7 @@
       break;
     }
     break;
-    
+
   case ISD::FP_TO_SINT:
   case ISD::FP_TO_UINT:
     switch (getTypeAction(Node->getOperand(0).getValueType())) {
@@ -1590,7 +1590,7 @@
         NeedsAnotherIteration = true;
         return Result;
       }
-     
+
       if (Tmp1 != Node->getOperand(0))
         Result = DAG.getNode(Node->getOpcode(), Node->getValueType(0), Tmp1);
       break;
@@ -1602,7 +1602,7 @@
       break;
     }
     break;
-        
+
   case ISD::ZERO_EXTEND:
   case ISD::SIGN_EXTEND:
   case ISD::FP_EXTEND:
@@ -2785,7 +2785,7 @@
       case Legal: Op = LegalizeOp(Node->getOperand(0)); break;
       case Promote: Op = PromoteOp(Node->getOperand(0)); break;
       }
-      
+
       Op = TLI.LowerOperation(DAG.getNode(ISD::FP_TO_SINT, VT, Op), DAG);
 
       // Now that the custom expander is done, expand the result, which is still
@@ -2793,12 +2793,13 @@
       ExpandOp(Op, Lo, Hi);
       break;
     }
-    
+
     if (Node->getOperand(0).getValueType() == MVT::f32)
       Lo = ExpandLibCall("__fixsfdi", Node, Hi);
     else
       Lo = ExpandLibCall("__fixdfdi", Node, Hi);
     break;
+
   case ISD::FP_TO_UINT:
     if (TLI.getOperationAction(ISD::FP_TO_UINT, VT) == TargetLowering::Custom) {
       SDOperand Op = DAG.getNode(ISD::FP_TO_UINT, VT,
@@ -2808,7 +2809,7 @@
       ExpandOp(TLI.LowerOperation(Op, DAG), Lo, Hi);
       break;
     }
-    
+
     if (Node->getOperand(0).getValueType() == MVT::f32)
       Lo = ExpandLibCall("__fixunssfdi", Node, Hi);
     else






More information about the llvm-commits mailing list