LLVM 20.0.0git
|
Default resource allocation strategy used by processor resource groups and processor resources with multiple units. More...
#include "llvm/MCA/HardwareUnits/ResourceManager.h"
Public Member Functions | |
DefaultResourceStrategy (uint64_t UnitMask) | |
virtual | ~DefaultResourceStrategy ()=default |
uint64_t | select (uint64_t ReadyMask) override |
Selects a processor resource unit from a ReadyMask. | |
void | used (uint64_t Mask) override |
Called by the ResourceManager when a processor resource group, or a processor resource with multiple units has become unavailable. | |
Public Member Functions inherited from llvm::mca::ResourceStrategy | |
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. | |
Default resource allocation strategy used by processor resource groups and processor resources with multiple units.
Definition at line 67 of file ResourceManager.h.
|
inline |
Definition at line 120 of file ResourceManager.h.
|
virtualdefault |
Selects a processor resource unit from a ReadyMask.
Implements llvm::mca::ResourceStrategy.
Definition at line 34 of file ResourceManager.cpp.
References llvm::mca::selectImpl().
|
overridevirtual |
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 from llvm::mca::ResourceStrategy.
Definition at line 51 of file ResourceManager.cpp.