[llvm-commits] [llvm] r41901 - /llvm/trunk/include/llvm/Target/TargetInstrInfo.h

Evan Cheng evan.cheng at apple.com
Wed Sep 12 17:16:30 PDT 2007


Author: evancheng
Date: Wed Sep 12 19:16:29 2007
New Revision: 41901

URL: http://llvm.org/viewvc/llvm-project?rev=41901&view=rev
Log:
Added getNumDefs().

Modified:
    llvm/trunk/include/llvm/Target/TargetInstrInfo.h

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

==============================================================================
--- llvm/trunk/include/llvm/Target/TargetInstrInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetInstrInfo.h Wed Sep 12 19:16:29 2007
@@ -201,6 +201,10 @@
     return get(Opcode).numOperands;
   }
 
+  int getNumDefs(MachineOpCode Opcode) const {
+    return get(Opcode).numDefs;
+  }
+
   InstrSchedClass getSchedClass(MachineOpCode Opcode) const {
     return get(Opcode).schedClass;
   }





More information about the llvm-commits mailing list