diff options
author | Vladimir Trubilov <vtrubiloff@gmail.com> | 2016-07-17 00:13:22 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-07-17 00:13:31 +0200 |
commit | 1ba79fa4d0e13e61a805fa458bcf2e690710d88b (patch) | |
tree | 15027609774083de6437767ce1449f358a0e3d1e /utils | |
parent | 0f0cdb6827803015a9a3924fdafaef8dbcde048f (diff) | |
download | haskell-1ba79fa4d0e13e61a805fa458bcf2e690710d88b.tar.gz |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mkUserGuidePart/Options/CompilerDebugging.hs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/utils/mkUserGuidePart/Options/CompilerDebugging.hs b/utils/mkUserGuidePart/Options/CompilerDebugging.hs index ce84a2a48b..c886156d80 100644 --- a/utils/mkUserGuidePart/Options/CompilerDebugging.hs +++ b/utils/mkUserGuidePart/Options/CompilerDebugging.hs @@ -20,8 +20,16 @@ compilerDebuggingOptions = , flagDescription = "Dump interpreter byte code" , flagType = DynamicFlag } + , flag { flagName = "-ddump-cmm-from-stg" + , flagDescription = "Dump STG-to-C-- output" + , flagType = DynamicFlag + } + , flag { flagName = "-ddump-cmm-verbose" + , flagDescription = "Show output from each C-- pipeline pass" + , flagType = DynamicFlag + } , flag { flagName = "-ddump-cmm" - , flagDescription = "Dump C-- output" + , flagDescription = "Dump the final C-- output" , flagType = DynamicFlag } , flag { flagName = "-ddump-core-stats" |