I need to visualize the CFG of an LLVM Function, which I have in a .ll
file. There is the opt
tool, which has the --view-cfg
option. However, the problem is that the function is broken, the definition of a register does not dominate all its uses. I need to view the CFG to investigate why this is the case. Problem: opt
does not take wrong LLVM functions, so I cannot view the CFG with it.
So, what is the best way to visualize the CFG of a broken LLVM function?