diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-12-19 20:06:03 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-12-19 20:06:03 +0000 |
commit | 1e2ec6abd4e150ac87d6cde3133fa9895f63c74c (patch) | |
tree | 02242c8a2a79bd9f826fdcea992e40315eb56ab4 /include/llvm/Target | |
parent | 82099683060abb1f74453d06e78a3729a75ef7ee (diff) | |
download | external_llvm-1e2ec6abd4e150ac87d6cde3133fa9895f63c74c.zip external_llvm-1e2ec6abd4e150ac87d6cde3133fa9895f63c74c.tar.gz external_llvm-1e2ec6abd4e150ac87d6cde3133fa9895f63c74c.tar.bz2 |
Attempt to fix PR11607 by shuffling around which class defines which methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 8409229..fc7c51a 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -646,7 +646,7 @@ public: virtual int getOperandLatency(const InstrItineraryData *ItinData, SDNode *DefNode, unsigned DefIdx, - SDNode *UseNode, unsigned UseIdx) const; + SDNode *UseNode, unsigned UseIdx) const = 0; /// getOutputLatency - Compute and return the output dependency latency of a /// a given pair of defs which both target the same register. This is usually @@ -665,7 +665,7 @@ public: unsigned *PredCost = 0) const; virtual int getInstrLatency(const InstrItineraryData *ItinData, - SDNode *Node) const; + SDNode *Node) const = 0; /// isHighLatencyDef - Return true if this opcode has high latency to its /// result. @@ -839,6 +839,11 @@ public: virtual bool isSchedulingBoundary(const MachineInstr *MI, const MachineBasicBlock *MBB, const MachineFunction &MF) const; + virtual int getOperandLatency(const InstrItineraryData *ItinData, + SDNode *DefNode, unsigned DefIdx, + SDNode *UseNode, unsigned UseIdx) const; + virtual int getInstrLatency(const InstrItineraryData *ItinData, + SDNode *Node) const; bool usePreRAHazardRecognizer() const; |