[LLVMdev] Inline hint for methods defined in-class

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jun 24 22:19:24 PDT 2015


> On 24 Jun 2015, at 14:35, David Blaikie <dblaikie at gmail.com> wrote:
> 
> I'm not sure that's the case - in my experience (for my own code & the code I see from others) people put stuff in headers that's "short enough" that it's not worth the hassle of an external definition. I don't really think authors are making an actual judgment about how much of a win inlining their function is most of the time when they put a definition inline in a class. (maybe a litttle more likely when it's a standalone function where you have to write "inline" explicitly, but maybe not even then)

FWIW, this was the motivation for the current behavior.

And science, of course.

Thanks,
/jakob



More information about the llvm-dev mailing list