[llvm] [CodeGen] Port FreeMachineFunction to new pass manager (PR #79421)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 00:48:00 PST 2024
================
@@ -125,8 +125,8 @@ MACHINE_FUNCTION_ANALYSIS("pass-instrumentation", PassInstrumentationAnalysis,
#ifndef MACHINE_FUNCTION_PASS
#define MACHINE_FUNCTION_PASS(NAME, PASS_NAME, CONSTRUCTOR)
#endif
+MACHINE_FUNCTION_PASS("free-machine-function", FreeMachineFunctionPass, ())
----------------
paperchalice wrote:
In theory we should never run this pass manually, `MachineFunctionPassManager` will always create a machine function (by getOrCreateMachineFunction). Or we shouldn't expose this pass , like `BitcodeWriterPass`.
https://github.com/llvm/llvm-project/pull/79421
More information about the llvm-commits
mailing list