LLVM 17.0.0git
|
#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. | |
unsigned | getNumHashMismatches () const |
Get the number of hash mismatches. | |
unsigned | getNumCountMismatches () const |
Get the number of count mismatches. | |
unsigned | getNumCounterOverflows () const |
Get the number of counter overflows. | |
unsigned | getNumValueSiteCountMismatches () const |
Get the number of value site count mismatches. | |
Error | takeError () |
Return the first encountered error and reset FirstError to a success value. | |
Definition at line 387 of file InstrProf.h.
|
default |
|
inline |
Definition at line 409 of file InstrProf.h.
References assert(), and llvm::success.
void llvm::SoftInstrProfErrors::addError | ( | instrprof_error | IE | ) |
Track a soft error (IE
) and increment its associated counter.
Definition at line 235 of file InstrProf.cpp.
References llvm::count_mismatch, llvm::counter_overflow, llvm::hash_mismatch, llvm_unreachable, llvm::success, and llvm::value_site_count_mismatch.
|
inline |
Get the number of counter overflows.
Definition at line 424 of file InstrProf.h.
|
inline |
Get the number of count mismatches.
Definition at line 421 of file InstrProf.h.
|
inline |
Get the number of hash mismatches.
Definition at line 418 of file InstrProf.h.
|
inline |
Get the number of value site count mismatches.
Definition at line 427 of file InstrProf.h.
|
inline |
Return the first encountered error and reset FirstError to a success value.
Definition at line 433 of file InstrProf.h.
References E, llvm::success, and llvm::Error::success().