[cfe-dev] How to interpret the option `-finline-hint-functions`?

Mahesha S via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 30 09:33:47 PST 2020


Hi-

We have following clang options which are related to function inlining.

[1].  -finline-functions:      Inline suitable functions
[2].  -finline-hint-functions:      Inline functions which are (explicitly
or implicitly) marked inline

My interpretation of [1] is that we inform the compiler - to take a
decision about function inlining on its own discretion, that way, it may
chose to inline few functions which are not explicitly marked with the
`inline` keyword and may chose *not *to inline few functions which
are explicitly marked with `inline` keyword.

Again, my interpretation of [2] is that we inform the compiler - to take
a decision about function inlining on its own discretion, but, in this
case, about *only *the functions which are explicitly marked with the
`inline` keyword, nothing else.

Am I correct with my above understanding?

-- 
Thanks,
Mahesha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200130/314725c4/attachment.html>


More information about the cfe-dev mailing list