LLVM 19.0.0git
Public Member Functions | List of all members
llvm::mca::DefaultSchedulerStrategy Class Reference

Default instruction selection strategy used by class Scheduler. More...

#include "llvm/MCA/HardwareUnits/Scheduler.h"

Inheritance diagram for llvm::mca::DefaultSchedulerStrategy:
Inheritance graph
[legend]

Public Member Functions

 DefaultSchedulerStrategy ()=default
 
virtual ~DefaultSchedulerStrategy ()
 
bool compare (const InstRef &Lhs, const InstRef &Rhs) const override
 Returns true if Lhs should take priority over Rhs.
 
- Public Member Functions inherited from llvm::mca::SchedulerStrategy
 SchedulerStrategy ()=default
 
virtual ~SchedulerStrategy ()
 
virtual bool compare (const InstRef &Lhs, const InstRef &Rhs) const =0
 Returns true if Lhs should take priority over Rhs.
 

Detailed Description

Default instruction selection strategy used by class Scheduler.

Definition at line 40 of file Scheduler.h.

Constructor & Destructor Documentation

◆ DefaultSchedulerStrategy()

llvm::mca::DefaultSchedulerStrategy::DefaultSchedulerStrategy ( )
default

◆ ~DefaultSchedulerStrategy()

llvm::mca::DefaultSchedulerStrategy::~DefaultSchedulerStrategy ( )
virtualdefault

Member Function Documentation

◆ compare()

bool llvm::mca::DefaultSchedulerStrategy::compare ( const InstRef Lhs,
const InstRef Rhs 
) const
inlineoverridevirtual

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.

Prioritize older instructions over younger instructions to minimize the pressure on the reorder buffer.

Implements llvm::mca::SchedulerStrategy.

Definition at line 51 of file Scheduler.h.

References llvm::mca::InstRef::getSourceIndex().


The documentation for this class was generated from the following files: