[llvm] [NewPM][CodeGen] Let `ModuleToMachineFunctionPassAdaptor` own `MachineModuleInfo` (PR #87226)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 04:36:47 PDT 2024


================
@@ -106,6 +107,8 @@ class PassBuilder {
   PipelineTuningOptions PTO;
   std::optional<PGOOptions> PGOOpt;
   PassInstrumentationCallbacks *PIC;
+  std::unique_ptr<MachineModuleInfo> MMI;
+  MachineModuleInfo *MMIRefPtr; // As reference to MMI
----------------
paperchalice wrote:

This PR tries to let the first `ModuleToMachineFunctionPassAdaptor` in pipeline owns all machine functions, but before the first `ModuleToMachineFunctionPassAdaptor`, we need somewhere store the initial `MachineModuleInfo`.

https://github.com/llvm/llvm-project/pull/87226


More information about the llvm-commits mailing list