class DefaultSchedulerStrategy
Declaration
class DefaultSchedulerStrategy : public SchedulerStrategy { /* full declaration omitted */ };
Description
Default instruction selection strategy used by class Scheduler.
Declared at: llvm/include/llvm/MCA/HardwareUnits/Scheduler.h:40
Inherits from: SchedulerStrategy
Method Overview
- public DefaultSchedulerStrategy()
- public bool compare(const llvm::mca::InstRef & Lhs, const llvm::mca::InstRef & Rhs) const
- private int computeRank(const llvm::mca::InstRef & Lhs) const
- public virtual ~DefaultSchedulerStrategy()
Inherited from SchedulerStrategy:
Methods
¶DefaultSchedulerStrategy()
DefaultSchedulerStrategy()
Declared at: llvm/include/llvm/MCA/HardwareUnits/Scheduler.h:48
¶bool compare(const llvm::mca::InstRef& Lhs,
const llvm::mca::InstRef& Rhs) const
bool compare(const llvm::mca::InstRef& Lhs,
const llvm::mca::InstRef& Rhs) const
Description
Returns true if Lhs should take priority over Rhs. This method is used by class Scheduler to select the "best" ready instruction to issue to the underlying pipelines.
Declared at: llvm/include/llvm/MCA/HardwareUnits/Scheduler.h:51
Parameters
- const llvm::mca::InstRef& Lhs
- const llvm::mca::InstRef& Rhs
¶int computeRank(
const llvm::mca::InstRef& Lhs) const
int computeRank(
const llvm::mca::InstRef& Lhs) const
Description
This method ranks instructions based on their age, and the number of known users. The lower the rank value, the better.
Declared at: llvm/include/llvm/MCA/HardwareUnits/Scheduler.h:43
Parameters
- const llvm::mca::InstRef& Lhs
¶virtual ~DefaultSchedulerStrategy()
virtual ~DefaultSchedulerStrategy()
Declared at: llvm/include/llvm/MCA/HardwareUnits/Scheduler.h:49