LLVM  14.0.0git
Macros | Functions
RemoveRedundantDebugValues.cpp File Reference
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/Function.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
Include dependency graph for RemoveRedundantDebugValues.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "removeredundantdebugvalues"
 

Functions

 STATISTIC (NumRemovedBackward, "Number of DBG_VALUEs removed (backward scan)")
 
 STATISTIC (NumRemovedForward, "Number of DBG_VALUEs removed (forward scan)")
 
 INITIALIZE_PASS (RemoveRedundantDebugValues, DEBUG_TYPE, "Remove Redundant DEBUG_VALUE analysis", false, false) RemoveRedundantDebugValues
 Default construct and initialize the pass. More...
 
static bool reduceDbgValsForwardScan (MachineBasicBlock &MBB)
 
static bool reduceDbgValsBackwardScan (MachineBasicBlock &MBB)
 

Detailed Description

The RemoveRedundantDebugValues pass removes redundant DBG_VALUEs that appear in MIR after the register allocator.

Definition in file RemoveRedundantDebugValues.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "removeredundantdebugvalues"

Definition at line 28 of file RemoveRedundantDebugValues.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RemoveRedundantDebugValues  ,
DEBUG_TYPE  ,
"Remove Redundant DEBUG_VALUE analysis ,
false  ,
false   
)

Default construct and initialize the pass.

Definition at line 64 of file RemoveRedundantDebugValues.cpp.

References llvm::PassRegistry::getPassRegistry(), and llvm::initializeRemoveRedundantDebugValuesPass().

◆ reduceDbgValsBackwardScan()

static bool reduceDbgValsBackwardScan ( MachineBasicBlock MBB)
static

◆ reduceDbgValsForwardScan()

static bool reduceDbgValsForwardScan ( MachineBasicBlock MBB)
static

◆ STATISTIC() [1/2]

STATISTIC ( NumRemovedBackward  ,
"Number of DBG_VALUEs removed (backward scan)"   
)

◆ STATISTIC() [2/2]

STATISTIC ( NumRemovedForward  ,
"Number of DBG_VALUEs removed (forward scan)"   
)