mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
misched: Add computeInstrLatency to TargetSchedModel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -74,6 +74,14 @@ public:
|
||||
const MachineInstr *UseMI, unsigned UseOperIdx,
|
||||
bool FindMin) const;
|
||||
|
||||
/// \brief Compute the instruction latency based on the available machine
|
||||
/// model.
|
||||
///
|
||||
/// Compute and return the expected latency of this instruction independent of
|
||||
/// a particular use. computeOperandLatency is the prefered API, but this is
|
||||
/// occasionally useful to help estimate instruction cost.
|
||||
unsigned computeInstrLatency(const MachineInstr *MI) const;
|
||||
|
||||
/// \brief Identify the processor corresponding to the current subtarget.
|
||||
unsigned getProcessorID() const { return SchedModel.getProcessorID(); }
|
||||
|
||||
|
Reference in New Issue
Block a user