Go to the documentation of this file.
35 #define DEBUG_TYPE "livedebugvalues"
41 cl::desc(
"Use instruction-ref based LiveDebugValues with "
42 "normal DBG_VALUE inputs"),
46 "experimental-debug-variable-locations",
47 cl::desc(
"Use experimental new value-tracking variable locations"));
52 "livedebugvalues-input-bb-limit",
53 cl::desc(
"Maximum input basic blocks before DBG_VALUE limit applies"),
56 "livedebugvalues-input-dbg-value-limit",
58 "Maximum input DBG_VALUE insts supported by debug range extension"),
86 std::unique_ptr<LDVImpl> InstrRefImpl;
87 std::unique_ptr<LDVImpl> VarLocImpl;
113 TPC = getAnalysisIfAvailable<TargetPassConfig>();
114 LDVImpl *TheImpl = &*VarLocImpl;
120 TheImpl = &*InstrRefImpl;
This is an optimization pass for GlobalISel generic memory operations.
void initializeLiveDebugValuesPass(PassRegistry &)
bool useDebugInstrRef() const
Returns true if the function's variable locations should be tracked with instruction referencing.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
Triple - Helper class for working with autoconf configuration names.
Properties which a MachineFunction may have at a given point in time.
virtual bool ExtendRanges(MachineFunction &MF, MachineDominatorTree *DomTree, TargetPassConfig *TPC, unsigned InputBBLimit, unsigned InputDbgValLimit)=0
static cl::opt< cl::boolOrDefault > ValueTrackingVariableLocations("experimental-debug-variable-locations", cl::desc("Use experimental new value-tracking variable locations"))
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
char & LiveDebugValuesID
LiveDebugValues pass.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
Represent the analysis usage information of a pass.
MachineFunctionProperties & set(Property P)
static cl::opt< unsigned > InputDbgValueLimit("livedebugvalues-input-dbg-value-limit", cl::desc("Maximum input DBG_VALUE insts supported by debug range extension"), cl::init(50000), cl::Hidden)
static cl::opt< bool > ForceInstrRefLDV("force-instr-ref-livedebugvalues", cl::Hidden, cl::desc("Use instruction-ref based LiveDebugValues with " "normal DBG_VALUE inputs"), cl::init(false))
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Target-Independent Code Generator Pass Configuration Options.
bool debuginfoShouldUseDebugInstrRef(const Triple &T)
initializer< Ty > init(const Ty &Val)
LDVImpl * makeInstrRefBasedLiveDebugValues()
void setPreservesCFG()
This function should be called by the pass, iff they do not:
static cl::opt< unsigned > InputBBLimit("livedebugvalues-input-bb-limit", cl::desc("Maximum input basic blocks before DBG_VALUE limit applies"), cl::init(10000), cl::Hidden)
INITIALIZE_PASS(LiveDebugValues, DEBUG_TYPE, "Live DEBUG_VALUE analysis", false, false) LiveDebugValues
Default construct and initialize the pass.
void calculate(MachineFunction &F)
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
LDVImpl * makeVarLocBasedLiveDebugValues()