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 
14 
15 namespace llvm {
16 
17 // Inline namespace for types / symbols shared between different
18 // LiveDebugValues implementations.
19 inline namespace SharedLiveDebugValues {
20 
21 // Expose a base class for LiveDebugValues interfaces to inherit from. This
22 // allows the generic LiveDebugValues pass handles to call into the
23 // implementation.
24 class LDVImpl {
25 public:
26  virtual bool ExtendRanges(MachineFunction &MF, TargetPassConfig *TPC,
27  unsigned InputBBLimit,
28  unsigned InputDbgValLimit) = 0;
29  virtual ~LDVImpl() {}
30 };
31 
32 } // namespace SharedLiveDebugValues
33 
34 // Factory functions for LiveDebugValues implementations.
35 extern LDVImpl *makeVarLocBasedLiveDebugValues();
36 extern LDVImpl *makeInstrRefBasedLiveDebugValues();
37 } // namespace llvm
38 
39 #endif // LLVM_LIB_CODEGEN_LIVEDEBUGVALUES_LIVEDEBUGVALUES_H
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
llvm::SharedLiveDebugValues::LDVImpl
Definition: LiveDebugValues.h:24
llvm::SharedLiveDebugValues::LDVImpl::~LDVImpl
virtual ~LDVImpl()
Definition: LiveDebugValues.h:29
llvm::TargetPassConfig
Target-Independent Code Generator Pass Configuration Options.
Definition: TargetPassConfig.h:84
TargetPassConfig.h
llvm::makeInstrRefBasedLiveDebugValues
LDVImpl * makeInstrRefBasedLiveDebugValues()
Definition: InstrRefBasedImpl.cpp:3718
llvm::MachineFunction
Definition: MachineFunction.h:230
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::SharedLiveDebugValues::LDVImpl::ExtendRanges
virtual bool ExtendRanges(MachineFunction &MF, TargetPassConfig *TPC, unsigned InputBBLimit, unsigned InputDbgValLimit)=0
MachineFunction.h
llvm::makeVarLocBasedLiveDebugValues
LDVImpl * makeVarLocBasedLiveDebugValues()
Definition: VarLocBasedImpl.cpp:2305