[llvm-branch-commits] [llvm] [CodeGen][NPM] Introduce FreeAllAnalysesPass (PR #139517)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon May 12 03:03:32 PDT 2025


================
@@ -45,3 +45,9 @@ MachineFunctionAnalysis::run(Function &F, FunctionAnalysisManager &FAM) {
 
   return Result(std::move(MF));
 }
+
+PreservedAnalyses FreeAllAnalysesPass::run(Function &F,
+                                           FunctionAnalysisManager &FAM) {
+  FAM.clear(F, F.getName());
----------------
arsenm wrote:

Also this will not work for anonymous functions, this can't depend on the name 

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


More information about the llvm-branch-commits mailing list