[LLVMdev] How to view CFG of loop (not complete function)

Martin Apel martin.apel at SIMPACK.de
Fri Jul 20 03:10:15 PDT 2012


Hi all,

I need to look at the CFG of a loop during debugging. However the
containing function is very large, so it is rather difficult to use the
CFG of the complete function. I tried using the ViewGraph method, but
the compiler kept complaining about undefined symbols related to
GraphTraits or
DOTGraphTraits. Is there any example that I could look at to find out,
what exactly I need to call something like
   ViewGraph(loop, "CFG") ?

Martin



More information about the llvm-dev mailing list