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.
Nhome
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