LLVM 22.0.0git
DebugifyStatistics Struct Reference

Track how much debugify information (in the synthetic mode only) has been lost. More...

#include "llvm/Transforms/Utils/Debugify.h"

Public Member Functions

float getMissingValueRatio () const
 Get the ratio of missing/expected dbg.values.
float getEmptyLocationRatio () const
 Get the ratio of missing/expected instructions with locations.

Public Attributes

unsigned NumDbgValuesMissing = 0
 Number of missing dbg.values.
unsigned NumDbgValuesExpected = 0
 Number of dbg.values expected.
unsigned NumDbgLocsMissing = 0
 Number of instructions with empty debug locations.
unsigned NumDbgLocsExpected = 0
 Number of instructions expected to have debug locations.

Detailed Description

Track how much debugify information (in the synthetic mode only) has been lost.

Definition at line 127 of file Debugify.h.

Member Function Documentation

◆ getEmptyLocationRatio()

float DebugifyStatistics::getEmptyLocationRatio ( ) const
inline

Get the ratio of missing/expected instructions with locations.

Definition at line 146 of file Debugify.h.

References NumDbgLocsExpected, and NumDbgLocsMissing.

◆ getMissingValueRatio()

float DebugifyStatistics::getMissingValueRatio ( ) const
inline

Get the ratio of missing/expected dbg.values.

Definition at line 141 of file Debugify.h.

References NumDbgLocsExpected, and NumDbgValuesMissing.

Member Data Documentation

◆ NumDbgLocsExpected

unsigned DebugifyStatistics::NumDbgLocsExpected = 0

Number of instructions expected to have debug locations.

Definition at line 138 of file Debugify.h.

Referenced by getEmptyLocationRatio(), and getMissingValueRatio().

◆ NumDbgLocsMissing

unsigned DebugifyStatistics::NumDbgLocsMissing = 0

Number of instructions with empty debug locations.

Definition at line 135 of file Debugify.h.

Referenced by getEmptyLocationRatio().

◆ NumDbgValuesExpected

unsigned DebugifyStatistics::NumDbgValuesExpected = 0

Number of dbg.values expected.

Definition at line 132 of file Debugify.h.

◆ NumDbgValuesMissing

unsigned DebugifyStatistics::NumDbgValuesMissing = 0

Number of missing dbg.values.

Definition at line 129 of file Debugify.h.

Referenced by getMissingValueRatio().


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