LLVM 20.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::EvictionCost Struct Reference

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

#include "CodeGen/RegAllocEvictionAdvisor.h"

Public Member Functions

 EvictionCost ()=default
 
bool isMax () const
 
void setMax ()
 
void setBrokenHints (unsigned NHints)
 
bool operator< (const EvictionCost &O) const
 

Public Attributes

unsigned BrokenHints = 0
 Total number of broken hints.
 
float MaxWeight = 0
 Maximum spill weight evicted.
 

Detailed Description

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

Definition at line 77 of file RegAllocEvictionAdvisor.h.

Constructor & Destructor Documentation

◆ EvictionCost()

llvm::EvictionCost::EvictionCost ( )
default

Member Function Documentation

◆ isMax()

bool llvm::EvictionCost::isMax ( ) const
inline

Definition at line 83 of file RegAllocEvictionAdvisor.h.

References BrokenHints.

◆ operator<()

bool llvm::EvictionCost::operator< ( const EvictionCost O) const
inline

Definition at line 89 of file RegAllocEvictionAdvisor.h.

References BrokenHints, and MaxWeight.

◆ setBrokenHints()

void llvm::EvictionCost::setBrokenHints ( unsigned  NHints)
inline

Definition at line 87 of file RegAllocEvictionAdvisor.h.

References BrokenHints.

◆ setMax()

void llvm::EvictionCost::setMax ( )
inline

Definition at line 85 of file RegAllocEvictionAdvisor.h.

References BrokenHints.

Member Data Documentation

◆ BrokenHints

unsigned llvm::EvictionCost::BrokenHints = 0

Total number of broken hints.

Definition at line 78 of file RegAllocEvictionAdvisor.h.

Referenced by isMax(), operator<(), setBrokenHints(), and setMax().

◆ MaxWeight

float llvm::EvictionCost::MaxWeight = 0

Maximum spill weight evicted.

Definition at line 79 of file RegAllocEvictionAdvisor.h.

Referenced by operator<().


The documentation for this struct was generated from the following file: