[llvm] [CodeGen][NewPM] Port LiveDebugVariables to NPM (PR #115468)
    Akshat Oke via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Nov 22 03:28:12 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);
+};
+
----------------
optimisan wrote:
print methods are hidden behind `NDEBUG`, and are invoked in `runOnMachineFunction`.
Is NPM moving away from printing debug info with DEBUG_TYPE?
https://github.com/llvm/llvm-project/pull/115468
    
    
More information about the llvm-commits
mailing list