[lld] r316811 - Inline trivial symbol constructors.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 31 19:58:53 PDT 2017


Technically I think you are right. These patches allows compilers to inline
functions, and don't textually inline functions.

On Tue, Oct 31, 2017 at 7:03 AM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rui Ueyama <ruiu at google.com> writes:
>
> > They are now written in class declarations, so they are inlined, no?
>
> At least from "inlined" I understand going from
>
>
> int f() { return 42; }
> int g() { return f(); }
>
> to
>
> int f() { return 42; }
> int g() { return 42; }
>
> what you did was
>
> inilne int f() { return 42; }
> int g() { return f(); }
>
> which I would says is not inlining f, is making f an inline function.
>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171031/e41c124c/attachment.html>


More information about the llvm-commits mailing list