LLVM 20.0.0git
Public Member Functions | List of all members
llvm::mca::ResourceStrategy Class Referenceabstract

Resource allocation strategy used by hardware scheduler resources. More...

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

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

Public Member Functions

 ResourceStrategy ()=default
 
virtual ~ResourceStrategy ()
 
virtual uint64_t select (uint64_t ReadyMask)=0
 Selects a processor resource unit from a ReadyMask.
 
virtual void used (uint64_t ResourceMask)
 Called by the ResourceManager when a processor resource group, or a processor resource with multiple units has become unavailable.
 

Detailed Description

Resource allocation strategy used by hardware scheduler resources.

Definition at line 47 of file ResourceManager.h.

Constructor & Destructor Documentation

◆ ResourceStrategy()

llvm::mca::ResourceStrategy::ResourceStrategy ( )
default

◆ ~ResourceStrategy()

llvm::mca::ResourceStrategy::~ResourceStrategy ( )
virtualdefault

Member Function Documentation

◆ select()

virtual uint64_t llvm::mca::ResourceStrategy::select ( uint64_t  ReadyMask)
pure virtual

Selects a processor resource unit from a ReadyMask.

Implemented in llvm::mca::DefaultResourceStrategy.

◆ used()

virtual void llvm::mca::ResourceStrategy::used ( uint64_t  ResourceMask)
inlinevirtual

Called by the ResourceManager when a processor resource group, or a processor resource with multiple units has become unavailable.

The default strategy uses this information to bias its selection logic.

Reimplemented in llvm::mca::DefaultResourceStrategy.

Definition at line 62 of file ResourceManager.h.


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