generating CFG for whole source code with LLVM

隐身守侯 提交于 2019-12-21 15:46:12

问题


Does anyone from LLVM community know if there is a way to generate CFG for the whole input source code using opt -dot-cfg foo.ll(.bc) ? as this one generates the CFG per function thus the connections between functions will be ignored.

It seems that the older analyze tool has depreciated.


回答1:


I wonder if you found any way to get interprocedural CFG. I found that inlining call functions by other inliner passes might be helpful but I couldn't be able to get it to work yet. I've posted this Finding all possible paths in a c/c++ program by LLVM



来源:https://stackoverflow.com/questions/26556356/generating-cfg-for-whole-source-code-with-llvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!