[llvm] [CodeGen] Port `GCInfoPrinter` to new pass manager (PR #74972)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 10 21:29:32 PST 2023


================
@@ -53,6 +97,12 @@ GCFunctionInfo::GCFunctionInfo(const Function &F, GCStrategy &S)
 
 GCFunctionInfo::~GCFunctionInfo() = default;
 
+bool GCFunctionInfo::invalidate(Function &F, const PreservedAnalyses &PA,
+                                FunctionAnalysisManager::Invalidator &) {
+  auto PAC = PA.getChecker<GCFunctionAnalysis>();
+  return !(PAC.preserved() || PAC.preservedSet<AllAnalysesOn<Function>>());
----------------
arsenm wrote:

de Morgan this 

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


More information about the llvm-commits mailing list