<br><br><div class="gmail_quote">2010/10/27 Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/10/27 Xinliang David Li <<a href="mailto:xinliangli@gmail.com">xinliangli@gmail.com</a>>:<br>
<div class="im">> Thanks. Just built clang and saw the meta data and annotations on the memory<br>
> accesses --  is any opt pass consuming the information?<br>
<br>
</div>The tests in test/Analysis/TypeBasedAliasAnalysis suggest that at<br>
least licm is using it. Also note that<br>
lib/Analysis/TypeBasedAliasAnalysis.cpp defines as enable-tbaa option<br>
that is off by default.<br>
<div class="im"><br></div></blockquote><div><br></div><div>I tried the option -- no much differences in the generated code.</div><div><br></div><div>A related question: how to pass the llvm specific options from clang driver?  It supports -Wl, -Wa, -Xanalyzer etc, but there is no documentation on how to pass -enable-tbaa to opt driver. </div>
<div><br></div><div>llvmc supports -Wo, option, but the option specified after -Wo, seems to be dropped.  Another thing, when using -clang option to llvmc, I got link errors even when -c or -S is specified:</div><div><br>
</div><div><br></div><div><div>clang -x c  foo.c -emit-llvm-bc -o /tmp/llvm_JnS1o8/foo.bc </div></div><div><br></div><div><div>(.text+0x20): undefined reference to `main'</div><div>collect2: ld returned 1 exit status</div>
<div>clang: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)</div></div><div><br></div><div>David</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
> By the way the build instruction in this<br>
> page <a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a> needs to be updated -- it<br>
> recommends config (with default settings) and build llvm in the source dir<br>
> -- it leaves some 'sticky' generated files in the source dir leading to<br>
> building problems.<br>
<br>
</div>Thanks. Will try to improve it a bit.<br>
<div class="im"><br>
><br>
> David<br>
> 2010/10/27 Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>><br>
<br>
</div>Cheers,<br>
<font color="#888888">Rafael<br>
</font></blockquote></div><br>