LLVM  10.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::OverlapStats Struct Reference

#include "llvm/ProfileData/InstrProf.h"

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

Public Types

enum  OverlapStatsLevel { ProgramLevel, FunctionLevel }
 

Public Member Functions

 OverlapStats (OverlapStatsLevel L=ProgramLevel)
 
void dump (raw_fd_ostream &OS) const
 
void setFuncInfo (StringRef Name, uint64_t Hash)
 
Error accumuateCounts (const std::string &BaseFilename, const std::string &TestFilename, bool IsCS)
 
void addOneMismatch (const CountSumOrPercent &MismatchFunc)
 
void addOneUnique (const CountSumOrPercent &UniqueFunc)
 

Static Public Member Functions

static double score (uint64_t Val1, uint64_t Val2, double Sum1, double Sum2)
 

Public Attributes

CountSumOrPercent Base
 
CountSumOrPercent Test
 
CountSumOrPercent Overlap
 
CountSumOrPercent Mismatch
 
CountSumOrPercent Unique
 
OverlapStatsLevel Level
 
const std::string * BaseFilename
 
const std::string * TestFilename
 
StringRef FuncName
 
uint64_t FuncHash
 
bool Valid
 

Detailed Description

Definition at line 609 of file InstrProf.h.

Member Enumeration Documentation

◆ OverlapStatsLevel

Enumerator
ProgramLevel 
FunctionLevel 

Definition at line 610 of file InstrProf.h.

Constructor & Destructor Documentation

◆ OverlapStats()

llvm::OverlapStats::OverlapStats ( OverlapStatsLevel  L = ProgramLevel)
inline

Definition at line 626 of file InstrProf.h.

References llvm::dump().

Member Function Documentation

◆ accumuateCounts()

Error llvm::OverlapStats::accumuateCounts ( const std::string &  BaseFilename,
const std::string &  TestFilename,
bool  IsCS 
)

◆ addOneMismatch()

void llvm::OverlapStats::addOneMismatch ( const CountSumOrPercent MismatchFunc)

◆ addOneUnique()

void llvm::OverlapStats::addOneUnique ( const CountSumOrPercent UniqueFunc)

◆ dump()

void llvm::OverlapStats::dump ( raw_fd_ostream OS) const

Definition at line 1213 of file InstrProf.cpp.

References llvm::format(), and I.

◆ score()

static double llvm::OverlapStats::score ( uint64_t  Val1,
uint64_t  Val2,
double  Sum1,
double  Sum2 
)
inlinestatic

◆ setFuncInfo()

void llvm::OverlapStats::setFuncInfo ( StringRef  Name,
uint64_t  Hash 
)
inline

Definition at line 632 of file InstrProf.h.

References Name.

Member Data Documentation

◆ Base

CountSumOrPercent llvm::OverlapStats::Base

◆ BaseFilename

const std::string* llvm::OverlapStats::BaseFilename

Definition at line 620 of file InstrProf.h.

◆ FuncHash

uint64_t llvm::OverlapStats::FuncHash

Definition at line 623 of file InstrProf.h.

◆ FuncName

StringRef llvm::OverlapStats::FuncName

Definition at line 622 of file InstrProf.h.

◆ Level

OverlapStatsLevel llvm::OverlapStats::Level

Definition at line 619 of file InstrProf.h.

◆ Mismatch

CountSumOrPercent llvm::OverlapStats::Mismatch

Definition at line 617 of file InstrProf.h.

◆ Overlap

CountSumOrPercent llvm::OverlapStats::Overlap

◆ Test

CountSumOrPercent llvm::OverlapStats::Test

◆ TestFilename

const std::string* llvm::OverlapStats::TestFilename

Definition at line 621 of file InstrProf.h.

◆ Unique

CountSumOrPercent llvm::OverlapStats::Unique

Definition at line 618 of file InstrProf.h.

◆ Valid

bool llvm::OverlapStats::Valid

Definition at line 624 of file InstrProf.h.

Referenced by llvm::InstrProfRecord::overlap().


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