[LLVMdev] Emit a dot file from llvm pass

Victor Campos vhscampos at gmail.com
Fri May 2 05:55:06 PDT 2014


Hi,

you could mimic the code from CFGPrinter.cpp, line 80.

http://llvm.org/docs/doxygen/html/CFGPrinter_8cpp_source.html

It uses the interface from GraphWriter.h

Regards,
Victor.


On Fri, May 2, 2014 at 9:26 AM, Kyriakos Georgiou <
Kyriakos.Georgiou at bristol.ac.uk> wrote:

> Hi,
>
> I know that from your llvm pass you can call : viewCFG() or viewCFGOnly to
> view a graphviz representation of a function. These creates and store the
> .dot files somewhere in the \tmp folder under linux. Is there any way to
> specify in which file to save the .dot code?
>
> Thank you,
> Kyriakos
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140502/5ce5534e/attachment.html>


More information about the llvm-dev mailing list