- 论坛徽章:
- 1
|
本帖最后由 duanlin 于 2013-07-04 09:08 编辑
llvm 可以看数据流的,SelectionDAG里面控制流和数据流都有。
One great way to visualize what is going on here is to take advantage of a few LLC command line options. The following options pop up a window displaying the SelectionDAG at specific times (if you only get errors printed to the console while using this, you probably need to configure your system to add support for it).
•-view-dag-combine1-dags displays the DAG after being built, before the first optimization pass.
•-view-legalize-dags displays the DAG before Legalization.
•-view-dag-combine2-dags displays the DAG before the second optimization pass.
•-view-isel-dags displays the DAG before the Select phase.
•-view-sched-dags displays the DAG before Scheduling.
我没有关注细节,我使用这个命令行参数给llc后,
Writing 'C:/DOCUME~1/linduan/LOCALS~1/Temp/LLVM_12480/dag.main.dot'... done.
生成了个ms office图标的文本文档。用什么graphxz?软件打开它可以看大概其。
要是想效果更好,文档说的可以弹出窗口显示图形的dag,这个我没试过。需要 configure your system ,你可以依此线索找到configure的办法,成了的话不妨单独发贴出来configure方法经验。
|
|