Stop special-casing annul and predict bits (which are Sparc-specific anyway)
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 5 Aug 2003 14:35:35 +0000 (14:35 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 5 Aug 2003 14:35:35 +0000 (14:35 +0000)
since those bits are now hard-coded in Sparc*.td files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7593 91177308-0d34-0410-b5e6-96231b3b80d8

support/tools/TableGen/CodeEmitterGen.cpp
utils/TableGen/CodeEmitterGen.cpp

index b98e71216d4a67d28ff4ceff57797950151c8bb6..b3928b8c36e6237056d6920fe61948d569516a17 100644 (file)
@@ -53,9 +53,7 @@ void CodeEmitterGen::run(std::ostream &o) {
     std::map<std::string, unsigned> OpOrder;
     std::map<std::string, bool> OpContinuous;
     for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
-      if (!Vals[i].getPrefix() &&  !Vals[i].getValue()->isComplete() &&
-          // ignore annul and predict bits since no one sets them yet
-          Vals[i].getName() != "annul" && Vals[i].getName() != "predict") {
+      if (!Vals[i].getPrefix() &&  !Vals[i].getValue()->isComplete()) {
         // Is the operand continuous? If so, we can just mask and OR it in
         // instead of doing it bit-by-bit, saving a lot in runtime cost.        
         const BitsInit *InstInit = BI;
@@ -199,11 +197,6 @@ void CodeEmitterGen::run(std::ostream &o) {
             }
           }
         }
-      } else {
-        // ignore annul and predict bits since no one sets them yet
-        if (Vals[f].getName() == "annul" || Vals[f].getName() == "predict") {
-          o << "      // found " << Vals[f].getName() << "\n";
-        }
       }
     }
 
index b98e71216d4a67d28ff4ceff57797950151c8bb6..b3928b8c36e6237056d6920fe61948d569516a17 100644 (file)
@@ -53,9 +53,7 @@ void CodeEmitterGen::run(std::ostream &o) {
     std::map<std::string, unsigned> OpOrder;
     std::map<std::string, bool> OpContinuous;
     for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
-      if (!Vals[i].getPrefix() &&  !Vals[i].getValue()->isComplete() &&
-          // ignore annul and predict bits since no one sets them yet
-          Vals[i].getName() != "annul" && Vals[i].getName() != "predict") {
+      if (!Vals[i].getPrefix() &&  !Vals[i].getValue()->isComplete()) {
         // Is the operand continuous? If so, we can just mask and OR it in
         // instead of doing it bit-by-bit, saving a lot in runtime cost.        
         const BitsInit *InstInit = BI;
@@ -199,11 +197,6 @@ void CodeEmitterGen::run(std::ostream &o) {
             }
           }
         }
-      } else {
-        // ignore annul and predict bits since no one sets them yet
-        if (Vals[f].getName() == "annul" || Vals[f].getName() == "predict") {
-          o << "      // found " << Vals[f].getName() << "\n";
-        }
       }
     }