[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


================
@@ -327,12 +327,20 @@ class LLVMContext {
   // Module needs access to the add/removeModule methods.
   friend class Module;
 
+  // Each MachineFunction need a unique number.
+  // See FunctionNumber in MachineFunction.
+  friend class FunctionToMachineFunctionAnalysis;
----------------
aeubanks wrote:

is this necessary?

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


More information about the llvm-commits mailing list