[LLVMdev] inlining hint
David Greene
dag at cray.com
Thu Aug 27 15:00:41 PDT 2009
On Wednesday 26 August 2009 12:59, Dale Johannesen wrote:
> class X {
> int A(int x) {....}
> inline int B(int x);
> };
> inline int X::B(int x) {...}
>
> Per the language standard, A and B are semantically identical, both
> "inline". It's been suggested that we should omit the inlinehint on
> A, on the grounds that many C++ programmers do not know this, and
> therefore misuse the construct.
No, no, no! :) I rely on this behavior. I assume anything I define
in the class definition will be inlined (when reasonable). I do this for
performance reasons.
-Dave
More information about the llvm-dev
mailing list