[llvm] [CodeGen][NewPM] Port RegAllocEvictionAdvisor analysis to NPM (PR #117309)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 13:54:03 PST 2024
================
@@ -191,13 +193,66 @@ class RegAllocEvictionAdvisorAnalysis : public ImmutablePass {
const AdvisorMode Mode;
};
+/// Common provider for legacy and new pass managers.
+/// This keeps the state for logging, and sets up and holds the provider.
+/// The legacy pass itself used to keep the logging state and provider,
+/// so this extraction helps the NPM analysis to reuse the logic.
+class RegAllocEvictionAdvisorProvider {
----------------
mtrofin wrote:
could you add a TODO here saying this is a point in time artifact for the period LPM and NPN coexist, after which this should be collapsed into the NPM analysis?
https://github.com/llvm/llvm-project/pull/117309
More information about the llvm-commits
mailing list