llvm::EvictionCost

Cost of evicting interference - used by default advisor, and the eviction chain heuristic in RegAllocGreedy.

Synopsis

Declared in <llvm/CodeGen/RegAllocEvictionAdvisor.h>

struct EvictionCost;

Member Functions

NameDescription
EvictionCost [constructor]Construct a zero eviction cost.
isMax Return true if this cost is the maximum (unbeatable) value.
setBrokenHints Set the number of broken allocation hints.
setMax Set this cost to the maximum (unbeatable) value.
operator< Return true if this cost is strictly less than O.
operator>= Return true if this cost is greater than or equal to O.

Data Members

NameDescription
BrokenHints Total number of broken hints.
MaxWeight Maximum spill weight evicted.