Generating CFG for all source code with LLVM

Does anyone in the LLVM community know if there is a way to generate CFG for all source code using opt -dot-cfg foo.ll(.bc) ? since this generates CFG for each function, therefore, connections between functions will be ignored.

It seems that the old analysis tool has depreciated.

+4
source share
1 answer

I wonder if you found a way to get interprocedural CFG. I found that enabling call functions with other inliner passes might be useful, but I can't get it to work. I posted this Find all possible paths in a c / C ++ program using LLVM

+1
source

Source: https://habr.com/ru/post/1468768/


All Articles