[llvm] [CodeGen] Port `GCInfoPrinter` to new pass manager (PR #74972)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 18:11:38 PST 2023
================
@@ -84,6 +142,36 @@ void GCModuleInfo::clear() {
// -----------------------------------------------------------------------------
+PreservedAnalyses GCInfoPrinterPass::run(Function &F,
+ FunctionAnalysisManager &FAM) {
+ if (F.isDeclaration() || !F.hasGC())
+ return PreservedAnalyses::all();
+
+ auto &Info = FAM.getResult<GCFunctionAnalysis>(F);
----------------
boomanaiden154 wrote:
A lot of this still seems to be duplicated with the legacy printer pass? Is there a way to share the implementation between them? Both seem to just be iterating over a `GCFunctionInfo` class.
https://github.com/llvm/llvm-project/pull/74972
More information about the llvm-commits
mailing list