LLVM
8.0.1
|
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. More... | |
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. More... | |
Public Member Functions inherited from llvm::mca::ResourceStrategy | |
ResourceStrategy () | |
virtual | ~ResourceStrategy () |
Default resource allocation strategy used by processor resource groups and processor resources with multiple units.
Definition at line 70 of file ResourceManager.h.
|
inline |
Definition at line 123 of file ResourceManager.h.
References llvm::BitmaskEnumDetail::Mask(), llvm::mca::ResourceStrategy::select(), and llvm::mca::ResourceStrategy::used().
|
virtualdefault |
|
overridevirtual |
Selects a processor resource unit from a ReadyMask.
Implements llvm::mca::ResourceStrategy.
Definition at line 41 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 58 of file ResourceManager.cpp.
References llvm::BitmaskEnumDetail::Mask().