De-tabify.
authorBill Wendling <isanbard@gmail.com>
Tue, 26 Feb 2008 10:45:29 +0000 (10:45 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 26 Feb 2008 10:45:29 +0000 (10:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47595 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/DAGISelEmitter.cpp

index 0faaa7284ac7c77d80c983e15a6c445718224575..25a5c56d767138d96df8dd20048e42b6ced35499 100644 (file)
@@ -703,18 +703,18 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
           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;
index 6f562fad5928cb6c7d121001160ff93a9bc69833..291a913c3791f239085bdb338a7d4d38955ab2ab 100644 (file)
@@ -731,9 +731,9 @@ public:
       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 @@ public:
         } 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;");