LLVM 24.0.0git
llvm::DroppedVariableStatsMIR Class Reference

A class to collect and print dropped debug information due to MIR optimization passes. More...

#include "llvm/CodeGen/DroppedVariableStatsMIR.h"

Inheritance diagram for llvm::DroppedVariableStatsMIR:
[legend]

Public Member Functions

 DroppedVariableStatsMIR ()
void runBeforePass (StringRef PassID, MachineFunction *MF)
void runAfterPass (StringRef PassID, MachineFunction *MF)
Public Member Functions inherited from llvm::DroppedVariableStats
LLVM_ABI DroppedVariableStats (bool DroppedVarStatsEnabled)
virtual ~DroppedVariableStats ()=default
 DroppedVariableStats (const DroppedVariableStats &)=delete
void operator= (const DroppedVariableStats &)=delete
bool getPassDroppedVariables ()

Additional Inherited Members

Protected Member Functions inherited from llvm::DroppedVariableStats
LLVM_ABI void setup ()
LLVM_ABI void cleanup ()
LLVM_ABI void calculateDroppedStatsAndPrint (DebugVariables &DbgVariables, StringRef PassID, StringRef FuncOrModName, StringRef PassLevel, const Function *Func)
 Calculate the number of dropped variables in an llvm::Function or llvm::MachineFunction and print the relevant information to stdout.
LLVM_ABI bool updateDroppedCount (const DILocation *DbgLoc, VarID Var, unsigned &DroppedCount)
 Check if a Var has been dropped or is a false positive.
LLVM_ABI void run (DebugVariables &DbgVariables, bool Before)
 Run code to populate relevant data structures over an llvm::Function or llvm::MachineFunction.
LLVM_ABI void populateVarIDSet (const DILocalVariable *DbgVar, DebugLoc DbgLoc, DenseSet< VarID > &VarIDSet)
 Add the VarID of the debug record of DbgVar at DbgLoc to VarIDSet.
Protected Attributes inherited from llvm::DroppedVariableStats
bool DroppedVariableStatsEnabled = false
SmallVector< DenseMap< const Function *, DebugVariables > > DebugVariablesStack
 A stack of a DenseMap, that maps DebugVariables for every pass to an llvm::Function.

Detailed Description

A class to collect and print dropped debug information due to MIR optimization passes.

After every MIR pass is run, it will print how many #DBG_VALUEs were dropped due to that pass.

Definition at line 26 of file DroppedVariableStatsMIR.h.

Constructor & Destructor Documentation

◆ DroppedVariableStatsMIR()

llvm::DroppedVariableStatsMIR::DroppedVariableStatsMIR ( )
inline

Member Function Documentation

◆ runAfterPass()

void DroppedVariableStatsMIR::runAfterPass ( StringRef PassID,
MachineFunction * MF )

◆ runBeforePass()

void DroppedVariableStatsMIR::runBeforePass ( StringRef PassID,
MachineFunction * MF )

Definition at line 19 of file DroppedVariableStatsMIR.cpp.

References llvm::DroppedVariableStats::setup().


The documentation for this class was generated from the following files: