[LLVMdev] Basic Block code sample

Alexandru Ionut Diaconescu alexandruionutdiaconescu at gmail.com
Tue Mar 19 07:46:35 PDT 2013


Example on how to iterate over CFG, take a look at DominanceFrontier.cpp.

You can further implement easily a traverse graph algorithm.

On Tue, Mar 19, 2013 at 2:35 PM, Ashish Kulkarni <
ashish-kulkarni at hotmail.com> wrote:

> Hi LLVM Delveloper,
>        i've been working on LLVM and Clang to get basic block information.
> The CFG supports Visitors (CFG.h) but i might want to ask that is there
> any code sample available so that i can get the things easily..
> Regards,
> Kulkarni Ashish A.
> College of engineering, Pune
> India.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Best regards,
Alexandru Ionut Diaconescu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130319/5f9311e6/attachment.html>

More information about the llvm-dev mailing list