Hi, <br><br>We're looking at using clang as an OpenCL frontend.  I can't find  --inline-threshold in the list of options for the clang executable.  I looked through the source code as well and cannot find any mentioning of the option inline-threshold. <br>
<br>Thanks, <br><br><div class="gmail_quote">On Tue, Jan 27, 2009 at 10:40 PM, Eli Friedman <span dir="ltr"><<a href="mailto:eli.friedman@gmail.com">eli.friedman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">On Tue, Jan 27, 2009 at 5:34 PM, VanDung To <<a href="mailto:vandungto@gmail.com">vandungto@gmail.com</a>> wrote:<br>
> Does clang have any feature for automatic inlining of functions?  If I have<br>
> functions that are not declared with static inline, is there any way I could<br>
> get the front end to inline some of the functions (based on size) using<br>
> command line options?<br>
<br>
</div></div>If you're using the clang executable, it does automatic inlining as<br>
long as you turn on the optimizers.  You can tweak how aggressive the<br>
inliner is with the -inline-threshold command-line parameter; the<br>
default value is 200.<br>
<br>
If you're writing your own program using the clang libraries, you'll<br>
have to invoke the inliner yourself; <a href="http://llvm.org/docs/" target="_blank">http://llvm.org/docs/</a> would be<br>
helpful for that.<br>
<br>
That said, what are you planning to do with clang?  We're always<br>
interested in hearing about new users.<br>
<font color="#888888"><br>
-Eli<br>
</font></blockquote></div><br>