[llvm-branch-commits] [llvm] [CodeGen][NPM] Introduce FreeAllAnalysesPass (PR #139517)
Akshat Oke via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon May 12 02:52:07 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());
----------------
optimisan wrote:
I didn't see a way to selectively clear results for a particular analysis without going through PreservedAnalyses. Should I add such a method to be used in the specialization?
https://github.com/llvm/llvm-project/pull/139517
More information about the llvm-branch-commits
mailing list