llvm::DroppedVariableStats::calculateDroppedStatsAndPrint

Calculate the number of dropped variables in an llvm::Function or llvm::MachineFunction and print the relevant information to stdout.

Synopsis

Declared in <llvm/IR/DroppedVariableStats.h>

void
calculateDroppedStatsAndPrint(
    DebugVariables& DbgVariables,
    StringRef FuncName,
    StringRef PassID,
    StringRef FuncOrModName,
    StringRef PassLevel,
    Function const* Func);

Parameters

NameDescription
DbgVariablesThe before/after debug variable sets for the function.
FuncNameThe name of the function being analyzed.
PassIDThe identifier of the optimization pass.
FuncOrModNameThe function or module name printed in the report.
PassLevelThe pass level string printed in the report.
FuncThe function whose dropped variables are being counted.