LLVM  6.0.0svn
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::CalleeInfo Struct Reference

Class to accumulate and hold information about a callee. More...

#include "llvm/IR/ModuleSummaryIndex.h"

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

Public Types

enum  HotnessType : uint8_t {
  HotnessType::Unknown = 0, HotnessType::Cold = 1, HotnessType::None = 2, HotnessType::Hot = 3,
  HotnessType::Critical = 4
}
 

Public Member Functions

 CalleeInfo ()=default
 
 CalleeInfo (HotnessType Hotness)
 
void updateHotness (const HotnessType OtherHotness)
 

Public Attributes

HotnessType Hotness = HotnessType::Unknown
 

Detailed Description

Class to accumulate and hold information about a callee.

Definition at line 49 of file ModuleSummaryIndex.h.

Member Enumeration Documentation

◆ HotnessType

enum llvm::CalleeInfo::HotnessType : uint8_t
strong
Enumerator
Unknown 
Cold 
None 
Hot 
Critical 

Definition at line 50 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

◆ CalleeInfo() [1/2]

llvm::CalleeInfo::CalleeInfo ( )
default

◆ CalleeInfo() [2/2]

llvm::CalleeInfo::CalleeInfo ( HotnessType  Hotness)
inlineexplicit

Definition at line 60 of file ModuleSummaryIndex.h.

Member Function Documentation

◆ updateHotness()

void llvm::CalleeInfo::updateHotness ( const HotnessType  OtherHotness)
inline

Definition at line 62 of file ModuleSummaryIndex.h.

References llvm::max().

Member Data Documentation

◆ Hotness

HotnessType llvm::CalleeInfo::Hotness = HotnessType::Unknown

Definition at line 57 of file ModuleSummaryIndex.h.


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