[cfe-dev] [RFC] Per-callsite inline intrinsics
Jon Chesterfield via cfe-dev
cfe-dev at lists.llvm.org
Tue Sep 4 11:49:55 PDT 2018
>
> This is a good idea. I've been working around the absence of this by
writing wrapper functions tagged with the corresponding metadata.
I don't know clang well enough to review the implementation, but if it
ships, I'll use it. Whatever the syntax.
Thanks
Hi folks,
>
> TL;DR: I propose to add 3 new C/C++ intrinsics for controlling inlining at
> callsite:
> * __builtin_no_inline(Foo()) -- prevents the call to Foo() from being
> inlined at that particular callsite.
> * __builtin_always_inline(Foo()) -- inlines this call to Foo(), if
> possible.
> * __builtin_flatten_inline(Foo()) -- inlines this call to Foo() and
> (transitively) everything called within Foo’s body.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180904/5d14981c/attachment.html>
More information about the cfe-dev
mailing list