LLVM  8.0.1
Public Member Functions | List of all members
llvm::SoftInstrProfErrors Class Reference

#include "llvm/ProfileData/InstrProf.h"

Public Member Functions

 SoftInstrProfErrors ()=default
 
 ~SoftInstrProfErrors ()
 
void addError (instrprof_error IE)
 Track a soft error (IE) and increment its associated counter. More...
 
unsigned getNumHashMismatches () const
 Get the number of hash mismatches. More...
 
unsigned getNumCountMismatches () const
 Get the number of count mismatches. More...
 
unsigned getNumCounterOverflows () const
 Get the number of counter overflows. More...
 
unsigned getNumValueSiteCountMismatches () const
 Get the number of value site count mismatches. More...
 
Error takeError ()
 Return the first encountered error and reset FirstError to a success value. More...
 

Detailed Description

Definition at line 339 of file InstrProf.h.

Constructor & Destructor Documentation

◆ SoftInstrProfErrors()

llvm::SoftInstrProfErrors::SoftInstrProfErrors ( )
default

◆ ~SoftInstrProfErrors()

llvm::SoftInstrProfErrors::~SoftInstrProfErrors ( )
inline

Definition at line 361 of file InstrProf.h.

References assert(), llvm::ARM_PROC::IE, and llvm::success.

Member Function Documentation

◆ addError()

void llvm::SoftInstrProfErrors::addError ( instrprof_error  IE)

Track a soft error (IE) and increment its associated counter.

Definition at line 184 of file InstrProf.cpp.

References llvm::count_mismatch, llvm::counter_overflow, llvm::hash_mismatch, llvm::ARM_PROC::IE, llvm_unreachable, llvm::success, and llvm::value_site_count_mismatch.

◆ getNumCounterOverflows()

unsigned llvm::SoftInstrProfErrors::getNumCounterOverflows ( ) const
inline

Get the number of counter overflows.

Definition at line 376 of file InstrProf.h.

◆ getNumCountMismatches()

unsigned llvm::SoftInstrProfErrors::getNumCountMismatches ( ) const
inline

Get the number of count mismatches.

Definition at line 373 of file InstrProf.h.

◆ getNumHashMismatches()

unsigned llvm::SoftInstrProfErrors::getNumHashMismatches ( ) const
inline

Get the number of hash mismatches.

Definition at line 370 of file InstrProf.h.

◆ getNumValueSiteCountMismatches()

unsigned llvm::SoftInstrProfErrors::getNumValueSiteCountMismatches ( ) const
inline

Get the number of value site count mismatches.

Definition at line 379 of file InstrProf.h.

◆ takeError()

Error llvm::SoftInstrProfErrors::takeError ( )
inline

Return the first encountered error and reset FirstError to a success value.

Definition at line 385 of file InstrProf.h.

References E, llvm::Error::success(), and llvm::success.


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