[LLVMdev] Is there any tutorial about using Clang to find all the basic control block?

Shuai Wang wangshuai901 at gmail.com
Sun Oct 27 21:03:32 PDT 2013


I want to use Clang to do a *source to source transformation* of cpp code,
I have achieve certain goals like this
tutorial<http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/>
and
currently I am trying to assign a unique ID to each basic control block.

Could anybody give me some help about how to find the basic control block?

Be more specified, I think the
CFG<http://clang.llvm.org/docs/InternalsManual.html#basic-blocks>
class
in Clang should help, but I don't know how to implement it..

Thank you a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131028/cd57c3c2/attachment.html>


More information about the llvm-dev mailing list