[flang-commits] [clang] [flang] [llvm] [mlir] Make MMIWP not have ownership over MMI + Make MMI Only Use an External MCContext (PR #105541)
Matin Raayai via flang-commits
flang-commits at lists.llvm.org
Thu Sep 19 15:03:22 PDT 2024
matinraayai wrote:
> sorry for the delay
>
> after looking at MMI/MCContext, I agree that MMI shouldn't own MCContext, but do we even need a reference from MMI to MCContext? they are different layers of codegen IIUC. if it's possible to completely separate them we should do that (please correct me if this doesn't make sense since I haven't spent too much time in codegen)
@aeubanks It's not impossible to separate them completely. `MCContext` is needed during initialization and finalization of the `MachineModuleInfoWrapperPass` (and its new pass manager variant) to set the diagnostics handler.
In theory, you can just pass the context to the wrapper pass instead. @arsenm any thoughts on this?
https://github.com/llvm/llvm-project/pull/105541
More information about the flang-commits
mailing list