diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-09-13 00:16:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-09-13 00:16:29 +0000 |
commit | ffddf97e5dd1fc222cec049c30ca5d9018a741f8 (patch) | |
tree | c17c23faff45927d5ecb112acb4db6daddb3fb87 /include | |
parent | 66003775464ad01fc828ba3bfaae75759b3f18e8 (diff) | |
download | external_llvm-ffddf97e5dd1fc222cec049c30ca5d9018a741f8.zip external_llvm-ffddf97e5dd1fc222cec049c30ca5d9018a741f8.tar.gz external_llvm-ffddf97e5dd1fc222cec049c30ca5d9018a741f8.tar.bz2 |
Added getNumDefs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41901 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 8de2795..1432b5f 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; } |