LLVM  14.0.0git
LiveDebugValues.h
Go to the documentation of this file.
1 //===- LiveDebugValues.cpp - Tracking Debug Value MIs ---------*- C++ -*---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_LIB_CODEGEN_LIVEDEBUGVALUES_LIVEDEBUGVALUES_H
10 #define LLVM_LIB_CODEGEN_LIVEDEBUGVALUES_LIVEDEBUGVALUES_H
11 
15 #include "llvm/ADT/Triple.h"
16 
17 namespace llvm {
18 
19 // Inline namespace for types / symbols shared between different
20 // LiveDebugValues implementations.
21 inline namespace SharedLiveDebugValues {
22 
23 // Expose a base class for LiveDebugValues interfaces to inherit from. This
24 // allows the generic LiveDebugValues pass handles to call into the
25 // implementation.
26 class LDVImpl {
27 public:
28  virtual bool ExtendRanges(MachineFunction &MF, MachineDominatorTree *DomTree,
29  TargetPassConfig *TPC, unsigned InputBBLimit,
30  unsigned InputDbgValLimit) = 0;
31  virtual ~LDVImpl() {}
32 };
33 
34 } // namespace SharedLiveDebugValues
35 
36 // Factory functions for LiveDebugValues implementations.
37 extern LDVImpl *makeVarLocBasedLiveDebugValues();
38 extern LDVImpl *makeInstrRefBasedLiveDebugValues();
39 
40 extern bool debuginfoShouldUseDebugInstrRef(const Triple &T);
41 
42 } // namespace llvm
43 
44 #endif // LLVM_LIB_CODEGEN_LIVEDEBUGVALUES_LIVEDEBUGVALUES_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
llvm::SharedLiveDebugValues::LDVImpl
Definition: LiveDebugValues.h:26
llvm::SharedLiveDebugValues::LDVImpl::ExtendRanges
virtual bool ExtendRanges(MachineFunction &MF, MachineDominatorTree *DomTree, TargetPassConfig *TPC, unsigned InputBBLimit, unsigned InputDbgValLimit)=0
llvm::SharedLiveDebugValues::LDVImpl::~LDVImpl
virtual ~LDVImpl()
Definition: LiveDebugValues.h:31
llvm::TargetPassConfig
Target-Independent Code Generator Pass Configuration Options.
Definition: TargetPassConfig.h:84
llvm::debuginfoShouldUseDebugInstrRef
bool debuginfoShouldUseDebugInstrRef(const Triple &T)
Definition: LiveDebugValues.cpp:125
TargetPassConfig.h
llvm::makeInstrRefBasedLiveDebugValues
LDVImpl * makeInstrRefBasedLiveDebugValues()
Definition: InstrRefBasedImpl.cpp:3082
llvm::MachineFunction
Definition: MachineFunction.h:241
Triple.h
InputBBLimit
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)
llvm::MachineDominatorTree
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
Definition: MachineDominators.h:46
MachineFunction.h
llvm::makeVarLocBasedLiveDebugValues
LDVImpl * makeVarLocBasedLiveDebugValues()
Definition: VarLocBasedImpl.cpp:2304
MachineDominators.h