Default heuristic priority advisor used by greedy register allocation.

Synopsis

Declared in <llvm/CodeGen/RegAllocPriorityAdvisor.h>

class DefaultPriorityAdvisor
    : public RegAllocPriorityAdvisor

Base Classes

Name

Description

RegAllocPriorityAdvisor

Interface to the priority advisor, which is responsible for prioritizing live ranges.

Member Functions

Name

Description

DefaultPriorityAdvisor [constructor]

Construct the default advisor for MF and allocator RA.

getPriority [virtual]

Find the priority value for a live range. A float value is used since ML prefers it.

Protected Data Members

Name

Description

Indexes

Slot indexes for the current function.

LIS

Live interval analysis for the current function.

MRI

Machine register info for the current function.

RA

Greedy register allocator that owns related analyses.

RegClassInfo

Cached register class information for the current function.

RegClassPriorityTrumpsGlobalness

Whether register‐class priority should outweigh globalness.

ReverseLocalAssignment

Whether local live ranges should be assigned in reverse order.

TRI

Target register info for the current subtarget.

VRM

Mapping from virtual to physical registers.

Created with MrDocs