Shuai Wang
2013-Oct-28 04:03 UTC
[LLVMdev] Is there any tutorial about using Clang to find all the basic control block?
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>
Mark Lacey
2013-Oct-29 17:16 UTC
[LLVMdev] Is there any tutorial about using Clang to find all the basic control block?
Hi Shuai, On Oct 27, 2013, at 9:03 PM, Shuai Wang <wangshuai901 at gmail.com> wrote:> I want to use Clang to do a source to source transformation of cpp code, I have achieve certain goals like this tutorial and currently I am trying to assign a unique ID to each basic control block. > >Clang questions like this should go to the clang developer list, cfe-dev at cs.uiuc.edu, rather than the LLVM developer list, llvmdev at cs.uiuc.edu. Mark> Could anybody give me some help about how to find the basic control block? > > Be more specified, I think the CFG class in Clang should help, but I don't know how to implement it.. > > Thank you a lot! > > _______________________________________________ > 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/20131029/385f6a6d/attachment.html>