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

Chris Lattner lattner at cs.uiuc.edu
Thu Aug 18 12:45:49 PDT 2005



Changes in directory llvm/utils/TableGen:

InstrInfoEmitter.cpp updated: 1.18 -> 1.19
---
Log message:

Fill in the numOperands field of the TargetInstrDescriptor struct from the
.td file.


---
Diffs of the changes:  (+1 -1)

 InstrInfoEmitter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/utils/TableGen/InstrInfoEmitter.cpp
diff -u llvm/utils/TableGen/InstrInfoEmitter.cpp:1.18 llvm/utils/TableGen/InstrInfoEmitter.cpp:1.19
--- llvm/utils/TableGen/InstrInfoEmitter.cpp:1.18	Thu Apr 21 19:00:35 2005
+++ llvm/utils/TableGen/InstrInfoEmitter.cpp	Thu Aug 18 14:45:37 2005
@@ -102,7 +102,7 @@
     OS << Inst.TheDef->getName();
   else
     OS << Inst.Name;
-  OS << "\",\t-1, -1, 0, false, 0, 0, 0, 0";
+  OS << "\",\t" << Inst.OperandList.size() << ", -1, 0, false, 0, 0, 0, 0";
 
   // Emit all of the target indepedent flags...
   if (Inst.isReturn)     OS << "|M_RET_FLAG";






More information about the llvm-commits mailing list