class SoftInstrProfErrors
Declaration
class SoftInstrProfErrors { /* full declaration omitted */ };
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:369
Member Variables
- private llvm::instrprof_error FirstError = instrprof_error::success
- The first soft error encountered.
- private unsigned int NumHashMismatches = 0
- The number of hash mismatches.
- private unsigned int NumCountMismatches = 0
- The number of count mismatches.
- private unsigned int NumCounterOverflows = 0
- The number of counter overflows.
- private unsigned int NumValueSiteCountMismatches = 0
- The number of value site count mismatches.
Method Overview
- public SoftInstrProfErrors()
- public void addError(llvm::instrprof_error IE)
- public unsigned int getNumCountMismatches() const
- public unsigned int getNumCounterOverflows() const
- public unsigned int getNumHashMismatches() const
- public unsigned int getNumValueSiteCountMismatches() const
- public llvm::Error takeError()
- public ~SoftInstrProfErrors()
Methods
¶SoftInstrProfErrors()
SoftInstrProfErrors()
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:389
¶void addError(llvm::instrprof_error IE)
void addError(llvm::instrprof_error IE)
Description
Track a soft error (\p IE) and increment its associated counter.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:397
Parameters
- llvm::instrprof_error IE
¶unsigned int getNumCountMismatches() const
unsigned int getNumCountMismatches() const
Description
Get the number of count mismatches.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:403
¶unsigned int getNumCounterOverflows() const
unsigned int getNumCounterOverflows() const
Description
Get the number of counter overflows.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:406
¶unsigned int getNumHashMismatches() const
unsigned int getNumHashMismatches() const
Description
Get the number of hash mismatches.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:400
¶unsigned int getNumValueSiteCountMismatches()
const
unsigned int getNumValueSiteCountMismatches()
const
Description
Get the number of value site count mismatches.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:409
¶llvm::Error takeError()
llvm::Error takeError()
Description
Return the first encountered error and reset FirstError to a success value.
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:415
¶~SoftInstrProfErrors()
~SoftInstrProfErrors()
Declared at: llvm/include/llvm/ProfileData/InstrProf.h:391