LLVM 22.0.0git
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:
[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 ()

Detailed Description

Default instruction selection strategy used by class Scheduler.

Definition at line 41 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 52 of file Scheduler.h.

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


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