<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Shuai,<div><br><div><div>On Oct 27, 2013, at 9:03 PM, Shuai Wang <<a href="mailto:wangshuai901@gmail.com">wangshuai901@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 13.63636302947998px; vertical-align: baseline; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 17.27272605895996px;">
I want to use Clang to do a <strong style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent">source to source transformation</strong> of cpp code, I have achieve certain goals like this <a href="http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none">tutorial</a> and currently I am trying to assign a unique ID to each basic control block.</p><div><br></div></div></blockquote><div><br></div>Clang questions like this should go to the clang developer list, <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>, rather than the LLVM developer list, <a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a>.</div><div><br></div><div>Mark</div><div><br><blockquote type="cite"><div dir="ltr"><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 13.63636302947998px; vertical-align: baseline; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 17.27272605895996px;">
Could anybody give me some help about how to find the basic control block?</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 13.63636302947998px; vertical-align: baseline; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 17.27272605895996px;">
Be more specified, I think the <a href="http://clang.llvm.org/docs/InternalsManual.html#basic-blocks" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none">CFG</a> class in Clang should help, but I don't know how to implement it..</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 13.63636302947998px; vertical-align: baseline; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 17.27272605895996px;">
Thank you a lot!</p></div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></body></html>