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

Evan Cheng evan.cheng at apple.com
Thu Nov 16 17:46:42 PST 2006



Changes in directory llvm/utils/TableGen:

InstrInfoEmitter.cpp updated: 1.53 -> 1.54
---
Log message:

Add opcode to TargetInstrDescriptor.

---
Diffs of the changes:  (+4 -3)

 InstrInfoEmitter.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.53 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.54
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.53	Tue Nov 14 20:38:17 2006
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Thu Nov 16 19:46:27 2006
@@ -197,7 +197,9 @@
   else
     MinOperands = 0;
   
-  OS << "  { \"";
+  OS << "  { ";
+  OS << Num << ",\t" << MinOperands << ",\t\"";
+
   if (Inst.Name.empty())
     OS << Inst.TheDef->getName();
   else
@@ -206,8 +208,7 @@
   unsigned ItinClass = !IsItineraries ? 0 :
             ItinClassNumber(Inst.TheDef->getValueAsDef("Itinerary")->getName());
   
-  OS << "\",\t" << MinOperands << ", " << ItinClass
-     << ", 0";
+  OS << "\",\t" << ItinClass << ", 0";
 
   // Try to determine (from the pattern), if the instruction is a store.
   bool isStore = false;






More information about the llvm-commits mailing list