[llvm] [NewPM][CodeGen] Add `FunctionToMachineFunctionAnalysis` (PR #88610)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 16:47:36 PDT 2024
================
@@ -120,6 +120,12 @@ void LLVMContext::removeModule(Module *M) {
pImpl->OwnedModules.erase(M);
}
+unsigned LLVMContext::generateMachineFunctionNum(Function &F) {
+ Module *M = F.getParent();
+ assert(pImpl->OwnedModules.contains(M) && "Unexpected module!");
+ return pImpl->MachineFunctionNums[M]++;
----------------
paperchalice wrote:
It start at 0 per module in current implementation and it is related to symbol table.
https://github.com/llvm/llvm-project/pull/88610
More information about the llvm-commits
mailing list