<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 29, 2010, at 11:35 AM, Xinliang David Li wrote:</div><blockquote type="cite">Thanks for the -m tip to pass llvm options.  Why is it not documented anywhere. See <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://clang.llvm.org/docs/UsersManual.html#commandline">http://clang.llvm.org/docs/UsersManual.html#commandline</a></blockquote><div><br></div>-mllvm flags are somewhat equivalent to gcc -param options.  -mllvm flags are for compiler hackers to play with, and are not stable or documented.  Once TBAA is stable and reliable it will be controlled with -fstrict-aliasing as you'd expect.</div><div><br></div><div>-Chris</div><div><br><blockquote type="cite"><div>
<br></div><div><a href="http://clang.llvm.org/docs/UsersManual.html#commandline"></a>David<br><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 2:17 AM, Benjamin Kramer <span dir="ltr"><<a href="mailto:benny.kra@googlemail.com">benny.kra@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On 29.10.2010, at 09:26, Nick Lewycky wrote:<br>
<br>
>  * If clang -O2 worked by running 'opt' and 'llc' under the hood, we<br>
> could tell it to pass a flag along to them, but it doesn't. As it<br>
> stands, you can't turn -enable-tbaa on when running clang.<br>
><br>
> So, putting that together, one way to do it is:<br>
><br>
>   clang -O2 -fstrict-aliasing foo.c -flto -c -o foo.bc<br>
>   opt -O2 -enable-tbaa foo.bc foo2.bc<br>
>   llc -O2 -enable-tbaa foo2.bc -o foo2.s<br>
<br>
</div>clang -O2 foo.c -S -o foo.s -mllvm -enable-tbaa<br>
<div><div></div><div class="h5">_______________________________________________<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/" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></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></body></html>