generating CFG for whole source code with LLVM
Asked Answered
M

1

6

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.

Malevolent answered 24/10, 2014 at 21:12 Comment(1)
That's ICFG, but llvm doesn't have accurate callgraph to do that.Yoong
T
2

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

Too answered 20/5, 2016 at 4:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.