[llvm-commits] [llvm] r47595 - in /llvm/trunk/utils/TableGen: CodeGenDAGPatterns.cpp DAGISelEmitter.cpp

Bill Wendling isanbard at gmail.com
Tue Feb 26 02:45:34 PST 2008


Author: void
Date: Tue Feb 26 04:45:29 2008
New Revision: 47595

URL: http://llvm.org/viewvc/llvm-project?rev=47595&view=rev
Log:
De-tabify.

Modified:
    llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
    llvm/trunk/utils/TableGen/DAGISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp?rev=47595&r1=47594&r2=47595&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.cpp Tue Feb 26 04:45:29 2008
@@ -703,18 +703,18 @@
           if (Size < 32) {
             int Val = (II->getValue() << (32-Size)) >> (32-Size);
             if (Val != II->getValue()) {
-	      // If sign-extended doesn't fit, does it fit as unsigned?
-	      unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT));
-	      unsigned UnsignedVal = unsigned(II->getValue());
-
-	      if ((ValueMask & UnsignedVal) != UnsignedVal) {
-		TP.error("Integer value '" + itostr(II->getValue())+
-			 "' is out of range for type '" + 
-			 getEnumName(getTypeNum(0)) + "'!");
-	      }
-	    }
-          }
-        }
+              // If sign-extended doesn't fit, does it fit as unsigned?
+              unsigned ValueMask = unsigned(MVT::getIntVTBitMask(VT));
+              unsigned UnsignedVal = unsigned(II->getValue());
+
+              if ((ValueMask & UnsignedVal) != UnsignedVal) {
+                TP.error("Integer value '" + itostr(II->getValue())+
+                         "' is out of range for type '" + 
+                         getEnumName(getTypeNum(0)) + "'!");
+              }
+            }
+         }
+       }
       }
       
       return MadeChange;

Modified: llvm/trunk/utils/TableGen/DAGISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/DAGISelEmitter.cpp?rev=47595&r1=47594&r2=47595&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/DAGISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/DAGISelEmitter.cpp Tue Feb 26 04:45:29 2008
@@ -731,9 +731,9 @@
       std::string Val = VariableMap[VarName];
       bool ModifiedVal = false;
       if (Val.empty()) {
-	cerr << "Variable '" << VarName << " referenced but not defined "
-	     << "and not caught earlier!\n";
-	abort();
+        cerr << "Variable '" << VarName << " referenced but not defined "
+             << "and not caught earlier!\n";
+        abort();
       }
       if (Val[0] == 'T' && Val[1] == 'm' && Val[2] == 'p') {
         // Already selected this operand, just return the tmpval.
@@ -1183,10 +1183,10 @@
         } else if (InputHasChain && !NodeHasChain) {
           // One of the inner node produces a chain.
           if (NodeHasOutFlag)
-	    emitCode("ReplaceUses(SDOperand(N.Val, " + utostr(NumPatResults+1) +
-		     "), SDOperand(ResNode, N.ResNo-1));");
-	  emitCode("ReplaceUses(SDOperand(N.Val, " + utostr(NumPatResults) +
-		   "), " + ChainName + ");");
+            emitCode("ReplaceUses(SDOperand(N.Val, " + utostr(NumPatResults+1) +
+                     "), SDOperand(ResNode, N.ResNo-1));");
+          emitCode("ReplaceUses(SDOperand(N.Val, " + utostr(NumPatResults) +
+                   "), " + ChainName + ");");
         }
 
         emitCode("return ResNode;");





More information about the llvm-commits mailing list