Output the opcode name of the instruction being emitted to cerr.
authorMisha Brukman <brukman+llvm@gmail.com>
Wed, 28 May 2003 18:29:10 +0000 (18:29 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Wed, 28 May 2003 18:29:10 +0000 (18:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6386 91177308-0d34-0410-b5e6-96231b3b80d8

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

index a73d2914ff6e94c7305b6eef79bfdf8312a9814f..f27e14ea4191c16e52bdc2cd9b5cfd2f0ee329ae 100644 (file)
@@ -27,7 +27,8 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
        I != E; ++I)
   {
     Record *R = *I;
-    o << "    case " << Namespace << R->getName() << ": {\n";
+    o << "    case " << Namespace << R->getName() << ": {\n"
+      << "      std::cerr << \"Emitting " << R->getName() << "\\n\";\n";
 
     const RecordVal *InstVal = R->getValue("Inst");
     Init *InitVal = InstVal->getValue();
@@ -49,9 +50,9 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
         o << "0";
       }
     }
-    o << "\n\n";
+    o << "\n";
 
-    o << "      // " << *InstVal << "\n\n";
+    o << "      // " << *InstVal << "\n";
     o << "      Value = " << Value << "U;\n\n";
     
     // Loop over all of the fields in the instruction adding in any
index a73d2914ff6e94c7305b6eef79bfdf8312a9814f..f27e14ea4191c16e52bdc2cd9b5cfd2f0ee329ae 100644 (file)
@@ -27,7 +27,8 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
        I != E; ++I)
   {
     Record *R = *I;
-    o << "    case " << Namespace << R->getName() << ": {\n";
+    o << "    case " << Namespace << R->getName() << ": {\n"
+      << "      std::cerr << \"Emitting " << R->getName() << "\\n\";\n";
 
     const RecordVal *InstVal = R->getValue("Inst");
     Init *InitVal = InstVal->getValue();
@@ -49,9 +50,9 @@ void CodeEmitterGen::createEmitter(std::ostream &o) {
         o << "0";
       }
     }
-    o << "\n\n";
+    o << "\n";
 
-    o << "      // " << *InstVal << "\n\n";
+    o << "      // " << *InstVal << "\n";
     o << "      Value = " << Value << "U;\n\n";
     
     // Loop over all of the fields in the instruction adding in any