llvm::RegAllocPriorityAdvisorProvider

Common provider for getting the priority advisor and logging rewards.

Synopsis

Declared in <llvm/CodeGen/RegAllocPriorityAdvisor.h>

class RegAllocPriorityAdvisorProvider;

Description

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.

Enums

NameDescription
AdvisorMode Which priority advisor implementation to construct.

Member Functions

NameDescription
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.

Non-Member Functions

NameDescription
createDevelopmentModePriorityAdvisorProviderCreate a development-mode ML priority advisor provider.
createReleaseModePriorityAdvisorProviderCreate a release-mode ML priority advisor provider.