[llvm-commits] CVS: llvm/utils/TableGen/RegisterInfoEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 15 16:04:23 PDT 2004



Changes in directory llvm/utils/TableGen:

RegisterInfoEmitter.cpp updated: 1.17 -> 1.18
---
Log message:

Remove awareness of isDummyClass


---
Diffs of the changes:  (+2 -9)

Index: llvm/utils/TableGen/RegisterInfoEmitter.cpp
diff -u llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.17 llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.18
--- llvm/utils/TableGen/RegisterInfoEmitter.cpp:1.17	Sat Jul 31 23:04:35 2004
+++ llvm/utils/TableGen/RegisterInfoEmitter.cpp	Sun Aug 15 18:04:13 2004
@@ -62,9 +62,6 @@
 
   OS << "namespace " << TargetName << " { // Register classes\n";
   for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
-    if (RegisterClasses[i]->getValueAsBit("isDummyClass"))
-      continue; // Ignore dummies
-
     const std::string &Name = RegisterClasses[i]->getName();
     if (Name.size() < 9 || Name[9] != '.')       // Ignore anonymous classes
       OS << "  extern TargetRegisterClass *" << Name << "RegisterClass;\n";
@@ -76,6 +73,8 @@
 // RegisterInfoEmitter::run - Main register file description emitter.
 //
 void RegisterInfoEmitter::run(std::ostream &OS) {
+  CodeGenTarget Target;
+
   EmitSourceFileHeader("Register Information Source Fragment", OS);
 
   // Start out by emitting each of the register classes... to do this, we build
@@ -95,7 +94,6 @@
 
   for (unsigned rc = 0, e = RegisterClasses.size(); rc != e; ++rc) {
     Record *RC = RegisterClasses[rc];
-    if (RC->getValueAsBit("isDummyClass")) continue; // Ignore dummies
 
     std::string Name = RC->getName();
     if (Name.size() > 9 && Name[9] == '.') {
@@ -210,13 +208,8 @@
   OS << "  };\n";      // End of register descriptors...
   OS << "}\n\n";       // End of anonymous namespace...
 
-  CodeGenTarget Target;
-
   OS << "namespace " << Target.getName() << " { // Register classes\n";
   for (unsigned i = 0, e = RegisterClasses.size(); i != e; ++i) {
-    if (RegisterClasses[i]->getValueAsBit("isDummyClass"))
-      continue; // Ignore dummies
-
     const std::string &Name = RegisterClasses[i]->getName();
     if (Name.size() < 9 || Name[9] != '.')    // Ignore anonymous classes
       OS << "  TargetRegisterClass *" << Name << "RegisterClass = &"






More information about the llvm-commits mailing list