[llvm] [Reg2Mem] Add legacy pass wrapping Reg2Mem (PR #111024)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 12:51:09 PDT 2024
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/111024 at github.com>
================
@@ -105,3 +105,29 @@ PreservedAnalyses RegToMemPass::run(Function &F, FunctionAnalysisManager &AM) {
PA.preserve<LoopAnalysis>();
return PA;
}
+
+namespace llvm {
+void initializeRegToMemWrapperPassPass(PassRegistry &);
+} // namespace llvm
+
+INITIALIZE_PASS_BEGIN(RegToMemWrapperPass, "reg-to-mem", "", true, true)
----------------
nikic wrote:
The pass is called reg2mem, not reg-to-mem.
https://github.com/llvm/llvm-project/pull/111024
More information about the llvm-commits
mailing list