diff options
author | Andrew Trick <atrick@apple.com> | 2012-06-07 19:42:04 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-06-07 19:42:04 +0000 |
commit | 397f4e3583b36b23047fec06b1648f0771cd6fe3 (patch) | |
tree | dd69572e275b8071fb5123ff6773e4769e16e989 /include | |
parent | 68b16541cc58411c7b0607ca4c0fb497222b668d (diff) | |
download | external_llvm-397f4e3583b36b23047fec06b1648f0771cd6fe3.zip external_llvm-397f4e3583b36b23047fec06b1648f0771cd6fe3.tar.gz external_llvm-397f4e3583b36b23047fec06b1648f0771cd6fe3.tar.bz2 |
Continue factoring computeOperandLatency. Use it for ARM hasHighOperandLatency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 67b61ec..ab848b0 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -678,6 +678,15 @@ public: unsigned UseIdx) const; /// computeOperandLatency - Compute and return the latency of the given data + /// dependent def and use when the operand indices are already known. + /// + /// FindMin may be set to get the minimum vs. expected latency. + unsigned computeOperandLatency(const InstrItineraryData *ItinData, + const MachineInstr *DefMI, unsigned DefIdx, + const MachineInstr *UseMI, unsigned UseIdx, + bool FindMin = false) const; + + /// computeOperandLatency - Compute and return the latency of the given data /// dependent def and use. DefMI must be a valid def. UseMI may be NULL for /// an unknown use. If the subtarget allows, this may or may not need to call /// getOperandLatency(). |