Calculate auxiliary information for a virtual register such as its spill weight and allocation hint.

Synopsis

Declared in <llvm/CodeGen/CalcSpillWeights.h>

class VirtRegAuxInfo;

Member Functions

Name

Description

VirtRegAuxInfo [constructor]

Construct auxiliary info for virtual‐register spill weight calculation.

~VirtRegAuxInfo [destructor] [virtual]

Virtual destructor.

calculateSpillWeightAndHint

(re)compute li's spill weight and allocation hint.

calculateSpillWeightsAndHints

Compute spill weights and allocation hints for all virtual register live intervals.

Static Member Functions

Name

Description

allUsesAvailableAt

Check whether every register used by MI is available at UseIdx.

copyHint

Return the preferred allocation register for reg, given a COPY instruction.

isRematerializable

Determine if all values in LI are rematerializable.

Protected Member Functions

Name

Description

normalize [virtual]

Normalize a raw spill weight for a live interval.

weightCalcHelper

Compute the spill weight and allocation hint for a live interval.

Created with MrDocs