Add an option to include TransCFG along with TC dumps
commit1b1761580f5d42402d5bc2796bc95f5322a2562e
authorGuilherme Ottoni <ottoni@fb.com>
Thu, 28 Apr 2016 22:36:44 +0000 (28 15:36 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Thu, 28 Apr 2016 23:00:36 +0000 (28 16:00 -0700)
treea514b48312745aed6e1e2469951a6fd94e8a4a63
parentfd55d0edf728d72e419e40cf89b7d3282b0633d3
Add an option to include TransCFG along with TC dumps

Summary:
Reuse the Eval.DumpRegion option to control this: 1 dumps just RegionDesc, and 2
adds the TransCFG.

The TransCFG is per function, not really per translation.  This diff attaches it
as an annotation on the first Optimize translation for the corresponding
function.

Reviewed By: paulbiss

Differential Revision: D3211351

fb-gh-sync-id: 9a4852f5016ee6fb3ae83388e9dbca904ec802af
fbshipit-source-id: 9a4852f5016ee6fb3ae83388e9dbca904ec802af
hphp/runtime/base/runtime-option.h
hphp/runtime/vm/jit/mc-generator.cpp
hphp/runtime/vm/jit/region-selection.cpp
hphp/runtime/vm/jit/region-selection.h
hphp/runtime/vm/jit/regionize-func.cpp
hphp/runtime/vm/jit/trans-cfg.cpp
hphp/runtime/vm/jit/trans-cfg.h
hphp/runtime/vm/jit/translate-region.cpp
hphp/runtime/vm/jit/translator.h