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

Methods

SoftInstrProfErrors()

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:389

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

Description

Get the number of count mismatches.

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:403

unsigned int getNumCounterOverflows() const

Description

Get the number of counter overflows.

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:406

unsigned int getNumHashMismatches() const

Description

Get the number of hash mismatches.

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:400

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()

Description

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

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:415

~SoftInstrProfErrors()

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:391