xref: /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/LiveDebugValuesPass.h (revision fdea83a5f63b881ade91c6cc9dfbf173137512c5)
1 //===- llvm/CodeGen/LiveDebugValuesPass.h -----------------------*- 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_CODEGEN_LIVEDEBUGVALUESPASS_H
10 #define LLVM_CODEGEN_LIVEDEBUGVALUESPASS_H
11 
12 #include "llvm/CodeGen/MachinePassManager.h"
13 
14 namespace llvm {
15 
16 class LiveDebugValuesPass : public PassInfoMixin<LiveDebugValuesPass> {
17   const bool ShouldEmitDebugEntryValues;
18 
19 public:
20   LiveDebugValuesPass(bool ShouldEmitDebugEntryValues)
21       : ShouldEmitDebugEntryValues(ShouldEmitDebugEntryValues) {}
22 
23   PreservedAnalyses run(MachineFunction &MF,
24                         MachineFunctionAnalysisManager &MFAM);
25 
26   void printPipeline(raw_ostream &OS,
27                      function_ref<StringRef(StringRef)> MapClassName2PassName);
28 };
29 
30 } // namespace llvm
31 
32 #endif // LLVM_CODEGEN_LIVEDEBUGVALUESPASS_H
33