Refactor Logger
Before this patch, the only way to override GHC's default logging behavior was to set `log_action`, `dump_action` and `trace_action` fields in DynFlags. This patch introduces a new Logger abstraction and stores it in HscEnv instead. This is part of #17957 (avoid storing state in DynFlags). DynFlags are duplicated and updated per-module (because of OPTIONS_GHC pragma), so we shouldn't store global state in them. This patch also fixes a race in parallel "--make" mode which updated the `generatedDumps` IORef concurrently. Bump haddock submodule The increase in MultilayerModules is tracked in #19293. Metric Increase: MultiLayerModules
Showing
- compiler/GHC.hs 48 additions, 41 deletionscompiler/GHC.hs
- compiler/GHC/Cmm/Info.hs 4 additions, 3 deletionscompiler/GHC/Cmm/Info.hs
- compiler/GHC/Cmm/Pipeline.hs 27 additions, 29 deletionscompiler/GHC/Cmm/Pipeline.hs
- compiler/GHC/CmmToAsm.hs 50 additions, 44 deletionscompiler/GHC/CmmToAsm.hs
- compiler/GHC/CmmToLlvm.hs 10 additions, 9 deletionscompiler/GHC/CmmToLlvm.hs
- compiler/GHC/CmmToLlvm/Base.hs 11 additions, 4 deletionscompiler/GHC/CmmToLlvm/Base.hs
- compiler/GHC/CmmToLlvm/Mangler.hs 4 additions, 3 deletionscompiler/GHC/CmmToLlvm/Mangler.hs
- compiler/GHC/Core/Lint.hs 32 additions, 23 deletionscompiler/GHC/Core/Lint.hs
- compiler/GHC/Core/Opt/CprAnal.hs 4 additions, 4 deletionscompiler/GHC/Core/Opt/CprAnal.hs
- compiler/GHC/Core/Opt/FloatOut.hs 6 additions, 5 deletionscompiler/GHC/Core/Opt/FloatOut.hs
- compiler/GHC/Core/Opt/Monad.hs 27 additions, 22 deletionscompiler/GHC/Core/Opt/Monad.hs
- compiler/GHC/Core/Opt/Pipeline.hs 91 additions, 79 deletionscompiler/GHC/Core/Opt/Pipeline.hs
- compiler/GHC/Core/Opt/Simplify.hs 11 additions, 8 deletionscompiler/GHC/Core/Opt/Simplify.hs
- compiler/GHC/Core/Opt/Simplify/Env.hs 6 additions, 1 deletioncompiler/GHC/Core/Opt/Simplify/Env.hs
- compiler/GHC/Core/Opt/Simplify/Monad.hs 13 additions, 7 deletionscompiler/GHC/Core/Opt/Simplify/Monad.hs
- compiler/GHC/Core/Opt/Simplify/Utils.hs 4 additions, 2 deletionscompiler/GHC/Core/Opt/Simplify/Utils.hs
- compiler/GHC/Core/Unfold.hs 17 additions, 16 deletionscompiler/GHC/Core/Unfold.hs
- compiler/GHC/CoreToByteCode.hs 7 additions, 4 deletionscompiler/GHC/CoreToByteCode.hs
- compiler/GHC/CoreToStg/Prep.hs 6 additions, 3 deletionscompiler/GHC/CoreToStg/Prep.hs
- compiler/GHC/Data/IOEnv.hs 6 additions, 0 deletionscompiler/GHC/Data/IOEnv.hs
Loading
Please register or sign in to comment