[llvm] [NewPM][CodeGen] Let `ModuleToMachineFunctionPassAdaptor` own `MachineModuleInfo` (PR #87226)
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 08:46:19 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
----------------
cdevadas wrote:
Can you explain why this design choice to use a unique_ptr and its reference?
https://github.com/llvm/llvm-project/pull/87226
More information about the llvm-commits
mailing list