LLVM 20.0.0git
|
Regalloc score. More...
#include "CodeGen/RegAllocScore.h"
Public Member Functions | |
RegAllocScore ()=default | |
RegAllocScore (const RegAllocScore &)=default | |
double | copyCounts () const |
double | loadCounts () const |
double | storeCounts () const |
double | loadStoreCounts () const |
double | expensiveRematCounts () const |
double | cheapRematCounts () const |
void | onCopy (double Freq) |
void | onLoad (double Freq) |
void | onStore (double Freq) |
void | onLoadStore (double Freq) |
void | onExpensiveRemat (double Freq) |
void | onCheapRemat (double Freq) |
RegAllocScore & | operator+= (const RegAllocScore &Other) |
bool | operator== (const RegAllocScore &Other) const |
bool | operator!= (const RegAllocScore &Other) const |
double | getScore () const |
Regalloc score.
Definition at line 28 of file RegAllocScore.h.
|
default |
|
default |
|
inline |
Definition at line 45 of file RegAllocScore.h.
Referenced by getScore(), and operator==().
|
inline |
Definition at line 40 of file RegAllocScore.h.
Referenced by getScore(), and operator==().
|
inline |
Definition at line 44 of file RegAllocScore.h.
Referenced by getScore(), and operator==().
double RegAllocScore::getScore | ( | ) | const |
Definition at line 60 of file RegAllocScore.cpp.
References cheapRematCounts(), CheapRematWeight, copyCounts(), CopyWeight, expensiveRematCounts(), ExpensiveRematWeight, loadCounts(), loadStoreCounts(), LoadWeight, storeCounts(), and StoreWeight.
|
inline |
Definition at line 41 of file RegAllocScore.h.
Referenced by getScore(), and operator==().
|
inline |
Definition at line 43 of file RegAllocScore.h.
Referenced by getScore(), and operator==().
|
inline |
Definition at line 52 of file RegAllocScore.h.
Referenced by llvm::calculateRegAllocScore().
|
inline |
Definition at line 47 of file RegAllocScore.h.
Referenced by llvm::calculateRegAllocScore().
|
inline |
Definition at line 51 of file RegAllocScore.h.
Referenced by llvm::calculateRegAllocScore().
|
inline |
Definition at line 48 of file RegAllocScore.h.
Referenced by llvm::calculateRegAllocScore().
|
inline |
Definition at line 50 of file RegAllocScore.h.
Referenced by llvm::calculateRegAllocScore().
|
inline |
Definition at line 49 of file RegAllocScore.h.
Referenced by llvm::calculateRegAllocScore().
bool RegAllocScore::operator!= | ( | const RegAllocScore & | Other | ) | const |
Definition at line 56 of file RegAllocScore.cpp.
References llvm::Other.
RegAllocScore & RegAllocScore::operator+= | ( | const RegAllocScore & | Other | ) |
Definition at line 37 of file RegAllocScore.cpp.
References llvm::Other.
bool RegAllocScore::operator== | ( | const RegAllocScore & | Other | ) | const |
Definition at line 47 of file RegAllocScore.cpp.
References cheapRematCounts(), copyCounts(), expensiveRematCounts(), loadCounts(), loadStoreCounts(), llvm::Other, and storeCounts().
|
inline |
Definition at line 42 of file RegAllocScore.h.
Referenced by getScore(), and operator==().