CodeGen: Way to dump cmm only once (#11717)
authorVladimir Trubilov <vtrubiloff@gmail.com>
Sat, 16 Jul 2016 22:13:22 +0000 (00:13 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sat, 16 Jul 2016 22:13:31 +0000 (00:13 +0200)
commit1ba79fa4d0e13e61a805fa458bcf2e690710d88b
tree15027609774083de6437767ce1449f358a0e3d1e
parent0f0cdb6827803015a9a3924fdafaef8dbcde048f
CodeGen: Way to dump cmm only once (#11717)

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
compiler/cmm/CmmParse.y
compiler/cmm/CmmPipeline.hs
compiler/main/DynFlags.hs
compiler/main/HscMain.hs
docs/users_guide/8.0.2-notes.rst
docs/users_guide/debugging.rst
testsuite/tests/codeGen/should_compile/Makefile
utils/mkUserGuidePart/Options/CompilerDebugging.hs