[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jul 18 06:15:56 PDT 2024
    
    
  
================
@@ -905,6 +921,78 @@ class AsmPrinter : public MachineFunctionPass {
   }
 };
 
+class AsmPrinterInitializePass
+    : public PassInfoMixin<AsmPrinterInitializePass> {
+  std::shared_ptr<AsmPrinter> Printer;
----------------
paperchalice wrote:
Currently these three passes are tightly coupled, `AsmPrinterInitializePass ` may modify some states in `AsmPrinter`. Also, they must share the same streamer, which is used by all three passes.
https://github.com/llvm/llvm-project/pull/99320
    
    
More information about the llvm-commits
mailing list