diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-12-14 02:28:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-12-14 02:28:53 +0000 |
commit | 12dfdb424ddcfabb347f168f9332795ba443ccd3 (patch) | |
tree | 94bf61e0a2e50579e0ebeb95a4a7c4ed02a0910e /include/llvm/Target | |
parent | dbdc616ed5eb1c92d75465333b0d96b0185f8c8f (diff) | |
download | external_llvm-12dfdb424ddcfabb347f168f9332795ba443ccd3.zip external_llvm-12dfdb424ddcfabb347f168f9332795ba443ccd3.tar.gz external_llvm-12dfdb424ddcfabb347f168f9332795ba443ccd3.tar.bz2 |
Allow target to specify register output dependency. Still default to one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 1903da7..957a89a 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -648,6 +648,16 @@ public: SDNode *DefNode, unsigned DefIdx, SDNode *UseNode, unsigned UseIdx) const; + /// getOutputLatency - Compute and return the output dependency latency of a + /// a given pair of defs which both target the same register. This is usually + /// one. + virtual unsigned getOutputLatency(const InstrItineraryData *ItinData, + const MachineInstr *DefMI1, + const MachineInstr *DefMI2, + unsigned Reg) const { + return 1; + } + /// getInstrLatency - Compute the instruction latency of a given instruction. /// If the instruction has higher cost when predicated, it's returned via /// PredCost. |