[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 19 07:52:55 PDT 2024
================
@@ -905,6 +921,78 @@ class AsmPrinter : public MachineFunctionPass {
}
};
+class AsmPrinterInitializePass
+ : public PassInfoMixin<AsmPrinterInitializePass> {
+ std::shared_ptr<AsmPrinter> Printer;
----------------
arsenm wrote:
What if the first pass owned the pointer, the next 2 depend on it, and the second 2 only use a non-smart reference?
https://github.com/llvm/llvm-project/pull/99320
More information about the llvm-commits
mailing list