Hi,<br><br>For not inlining specific function - try to declare it __attribute__((noinline)).<br><br>For not inlining any function - generate LLVM IR from clang, then add only selected optimizations through opt, then codegen binary with llc:<br>
<br>$ clang -c test.c -O0 -emit-llvm -S -o - | opt <insert your desired optimizations here> | llc -filetype=obj -o test.o<br><br>- D.<br><br><div class="gmail_quote">2013/1/31 Linhai <span dir="ltr"><<a href="mailto:songlh@cs.wisc.edu" target="_blank">songlh@cs.wisc.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am wondering whether there are some ways I can tell clang not inline some or all functions.<br>
<br>
Thanks a lot!<span class="HOEnZb"><font color="#888888"><br>
<br>
Linhai<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/llvmdev</a><br>
</font></span></blockquote></div><br>