Common provider for getting the priority advisor and logging rewards.
Declared in <llvm/CodeGen/RegAllocPriorityAdvisor.h>
class RegAllocPriorityAdvisorProvider;
Legacy analysis forwards all calls to this provider. New analysis serves the provider as the analysis result. Expensive setup is done in the constructor, so that the advisor can be created quickly for every machine function. TODO: Remove once legacy PM support is dropped.
| Name | Description |
|---|---|
AdvisorMode | Which priority advisor implementation to construct. |
| Name | Description |
|---|---|
RegAllocPriorityAdvisorProvider [constructor] | Construct a provider for advisor mode Mode. |
~RegAllocPriorityAdvisorProvider [destructor] [virtual] | Destroy this provider. |
getAdvisor [virtual] | Create a priority advisor for MF and allocator RA. |
getAdvisorMode | Return the advisor mode this provider was constructed with. |
logRewardIfNeeded [virtual] | Log a reward for MF when the advisor mode requires it. |
| Name | Description |
|---|---|
createDevelopmentModePriorityAdvisorProvider | Create a development-mode ML priority advisor provider. |
createReleaseModePriorityAdvisorProvider | Create a release-mode ML priority advisor provider. |