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

Shuai Wang wangshuai901 at gmail.com
Sun Oct 27 21:26:23 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/cfe-dev/attachments/20131028/f5f5058d/attachment.html>


More information about the cfe-dev mailing list