From: Evan Cheng Date: Thu, 13 Sep 2007 00:16:29 +0000 (+0000) Subject: Added getNumDefs(). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ffddf97e5dd1fc222cec049c30ca5d9018a741f8;p=oota-llvm.git Added getNumDefs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41901 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 8de27950ee1..1432b5f2159 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -201,6 +201,10 @@ public: return get(Opcode).numOperands; } + int getNumDefs(MachineOpCode Opcode) const { + return get(Opcode).numDefs; + } + InstrSchedClass getSchedClass(MachineOpCode Opcode) const { return get(Opcode).schedClass; }