LLVM  16.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"

Collaboration diagram for llvm::EvictionCost:
Collaboration graph
[legend]

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. More...
 
float MaxWeight = 0
 Maximum spill weight evicted. More...
 

Detailed Description

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

Definition at line 78 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 84 of file RegAllocEvictionAdvisor.h.

References BrokenHints.

◆ operator<()

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

Definition at line 90 of file RegAllocEvictionAdvisor.h.

References BrokenHints, MaxWeight, and llvm::RISCVFenceField::O.

◆ setBrokenHints()

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

Definition at line 88 of file RegAllocEvictionAdvisor.h.

References BrokenHints.

◆ setMax()

void llvm::EvictionCost::setMax ( )
inline

Definition at line 86 of file RegAllocEvictionAdvisor.h.

References BrokenHints.

Member Data Documentation

◆ BrokenHints

unsigned llvm::EvictionCost::BrokenHints = 0

Total number of broken hints.

Definition at line 79 of file RegAllocEvictionAdvisor.h.

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

◆ MaxWeight

float llvm::EvictionCost::MaxWeight = 0

Maximum spill weight evicted.

Definition at line 80 of file RegAllocEvictionAdvisor.h.

Referenced by operator<().


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