[llvm] [CodeGen][NewPM] Port LiveDebugVariables to NPM (PR #115468)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 04:48:37 PST 2024


================
@@ -63,6 +88,16 @@ class LiveDebugVariables : public MachineFunctionPass {
   }
 };
 
+class LiveDebugVariablesAnalysis
+    : public AnalysisInfoMixin<LiveDebugVariablesAnalysis> {
+  friend AnalysisInfoMixin<LiveDebugVariablesAnalysis>;
+  static AnalysisKey Key;
+
+public:
+  using Result = LiveDebugVariables;
+  Result run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM);
+};
+
----------------
paperchalice wrote:

It would be good to add `LiveDebugVariablesPrinterPass`, `LDVImpl` has `print` method.

https://github.com/llvm/llvm-project/pull/115468


More information about the llvm-commits mailing list