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

#include "llvm/Transforms/IPO/FunctionSpecialization.h"

Public Member Functions

 Bonus ()=default
 
 Bonus (Cost CodeSize, Cost Latency)
 
Bonusoperator+= (const Bonus RHS)
 
Bonus operator+ (const Bonus RHS) const
 
bool operator== (const Bonus RHS) const
 

Public Attributes

unsigned CodeSize = 0
 
unsigned Latency = 0
 

Detailed Description

Definition at line 143 of file FunctionSpecialization.h.

Constructor & Destructor Documentation

◆ Bonus() [1/2]

llvm::Bonus::Bonus ( )
default

Referenced by operator+().

◆ Bonus() [2/2]

llvm::Bonus::Bonus ( Cost  CodeSize,
Cost  Latency 
)
inline

Definition at line 149 of file FunctionSpecialization.h.

References assert(), CodeSize, and Latency.

Member Function Documentation

◆ operator+()

Bonus llvm::Bonus::operator+ ( const Bonus  RHS) const
inline

Definition at line 166 of file FunctionSpecialization.h.

References Bonus(), CodeSize, Latency, and RHS.

◆ operator+=()

Bonus & llvm::Bonus::operator+= ( const Bonus  RHS)
inline

Definition at line 160 of file FunctionSpecialization.h.

References CodeSize, Latency, and RHS.

◆ operator==()

bool llvm::Bonus::operator== ( const Bonus  RHS) const
inline

Definition at line 170 of file FunctionSpecialization.h.

References CodeSize, Latency, and RHS.

Member Data Documentation

◆ CodeSize

unsigned llvm::Bonus::CodeSize = 0

Definition at line 144 of file FunctionSpecialization.h.

Referenced by Bonus(), operator+(), operator+=(), and operator==().

◆ Latency

unsigned llvm::Bonus::Latency = 0

Definition at line 145 of file FunctionSpecialization.h.

Referenced by Bonus(), operator+(), operator+=(), and operator==().


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