From ffddf97e5dd1fc222cec049c30ca5d9018a741f8 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 13 Sep 2007 00:16:29 +0000 Subject: [PATCH] Added getNumDefs(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41901 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetInstrInfo.h | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.34.1