[llvm] [CodeGen][NewPM] Port RegisterUsageInfo to NPM (PR #113873)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 02:41:36 PDT 2024
================
@@ -66,6 +63,52 @@ class PhysicalRegisterUsageInfo : public ImmutablePass {
const LLVMTargetMachine *TM = nullptr;
};
+class PhysicalRegisterUsageInfoWrapperLegacy : public ImmutablePass {
----------------
cdevadas wrote:
Certain passes are ported with `WrapperPass` and others with `WrapperLegacy`. We should be consistent with it.
I think the initialize function of the former will have **initialize****WrapperPassPass** which looks odd with Pass doubled at the end. The latter seems better in that way.
https://github.com/llvm/llvm-project/pull/113873
More information about the llvm-commits
mailing list