Skip to content
  • tvv's avatar
    CodeGen: Way to dump cmm only once (#11717) · 1ba79fa4
    tvv authored and Ben Gamari's avatar Ben Gamari committed
    The `-ddump-cmm` put all stages of Cmm processing into one output.
    This patch changes its behavior and adds two more options to make
    Cmm dumping flexible.
    
    - `-ddump-cmm-from-stg` dumps only initial version of  Cmm right after
       STG->Cmm codegen
    - `-ddump-cmm` dumps the final result of the Cmm pipeline processing
    - `-ddump-cmm-verbose` dumps intermediate output of each Cmm pipeline
       step
    - `-ddump-cmm-proc` and `-ddump-cmm-caf` seems were lost. Now enabled
    
    Test Plan: ./validate
    
    Reviewers: thomie, simonmar, austin, bgamari
    
    Reviewed By: thomie, simonmar
    
    Subscribers: simonpj, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2393
    
    GHC Trac Issues: #11717
    1ba79fa4