[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 05:23:51 PDT 2024


================
@@ -905,6 +921,78 @@ class AsmPrinter : public MachineFunctionPass {
   }
 };
 
+class AsmPrinterInitializePass
+    : public PassInfoMixin<AsmPrinterInitializePass> {
+  std::shared_ptr<AsmPrinter> Printer;
----------------
paperchalice wrote:

Another problem is the ownership of  `std::unique_ptr<MCStreamer> OutStreamer;`, it looks like they must share the same streamer.

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


More information about the llvm-commits mailing list