Issue 84397
Summary [Codegen/NewPM] Add Function -> MachineFunction adaptor
Labels new issue
Assignees
Reporter aeubanks
    The codegen pipeline should work on a function and its corresponding machine function before moving onto the next function. This is only possible with a function -> machine function adaptor, which we don't currently have (see TODO [here](https://github.com/llvm/llvm-project/blob/d93a126090b6e772d3b96f201cdd44ea0d6360ef/llvm/include/llvm/Passes/CodeGenPassBuilder.h#L156))

To get the machine function for a given function in a function pass (the adaptor), we'll need the function analysis manager to handle machine functions, as opposed to a module analysis handling it. That's basically [this discourse discussion](https://discourse.llvm.org/t/machinefunction-ownership-in-the-new-pass-manager/77381)

@paperchalice @arsenm 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to