[llvm-commits] [llvm] r40709 - in /llvm/trunk: include/llvm/Target/TargetInstrInfo.h utils/TableGen/InstrInfoEmitter.cpp

Evan Cheng evan.cheng at apple.com
Wed Aug 1 17:20:17 PDT 2007


Author: evancheng
Date: Wed Aug  1 19:20:17 2007
New Revision: 40709

URL: http://llvm.org/viewvc/llvm-project?rev=40709&view=rev
Log:
Added TargetInstrDescriptor::numDefs - num of results.

Modified:
    llvm/trunk/include/llvm/Target/TargetInstrInfo.h
    llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp

Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetInstrInfo.h?rev=40709&r1=40708&r2=40709&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetInstrInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetInstrInfo.h Wed Aug  1 19:20:17 2007
@@ -130,6 +130,7 @@
 public:
   MachineOpCode   Opcode;        // The opcode.
   unsigned short  numOperands;   // Num of args (may be more if variable_ops).
+  unsigned short  numDefs;       // Num of args that are definitions.
   const char *    Name;          // Assembly language mnemonic for the opcode.
   InstrSchedClass schedClass;    // enum  identifying instr sched class
   unsigned        Flags;         // flags identifying machine instr class

Modified: llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp?rev=40709&r1=40708&r2=40709&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrInfoEmitter.cpp Wed Aug  1 19:20:17 2007
@@ -203,7 +203,8 @@
     MinOperands = 0;
   
   OS << "  { ";
-  OS << Num << ",\t" << MinOperands << ",\t\"";
+  OS << Num << ",\t" << MinOperands << ",\t"
+     << Inst.NumDefs << ",\t\"";
 
   if (Inst.Name.empty())
     OS << Inst.TheDef->getName();





More information about the llvm-commits mailing list