Add a flag to dump all cmm stages and split into separate files
dumpWith :: DynFlags -> DumpFlag -> String -> SDoc -> IO () dumpWith dflags flag txt sdoc = do -- ToDo: No easy way of say "dump all the cmm, *and* split -- them into files." Also, -ddump-cmm-verbose doesn't play -- nicely with -ddump-to-file, since the headers get omitted. dumpIfSet_dyn dflags flag txt sdoc when (not (dopt flag dflags)) $ dumpIfSet_dyn dflags Opt_D_dump_cmm_verbose txt sdoc
Add a new flag (something like
-ddump-cmm-verbose-grouped) that would dump all the cmm stages and split everything into files, stage per file respectively.