[llvm] [NewPM][CodeGen] Add `FunctionToMachineFunctionAnalysis` (PR #88610)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 15:35:37 PDT 2024


================
@@ -71,7 +73,9 @@ bool MachineFunctionAnalysisManagerModuleProxy::Result::invalidate(
 
 PreservedAnalyses
 ModuleToMachineFunctionPassAdaptor::run(Module &M, ModuleAnalysisManager &AM) {
-  auto &MMI = AM.getResult<MachineModuleAnalysis>(M).getMMI();
+  // Ensure we have a MachineModuleInfo
+  AM.getResult<MachineModuleAnalysis>(M).getMMI();
----------------
aeubanks wrote:

is this temporary (if so add a TODO)? is it too much to remove `MachineModuleAnalysis` from the various APIs in this patch as well?

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


More information about the llvm-commits mailing list