[llvm-dev] RFC: New function attribute "patchable-prologue"="<kind>"
Mehdi Amini via llvm-dev
llvm-dev at lists.llvm.org
Wed Apr 6 13:01:59 PDT 2016
> On Apr 6, 2016, at 12:48 PM, Sanjoy Das via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>
>
> Reid Kleckner wrote:
>> I'm assuming this attribute won't affect inlining or other IPO in any
>> way, but you should probably mention that in the langref.
>
> To directly answer this, this is just a *mechanism* to implement linkonce_odr type linkage. This in itself does not imply in IPO restrictions, that should come directly from the linkage type.
What do you mean "this is just a *mechanism* to implement linkonce_odr type linkage”?
linkonce_odr are allowed to be inlined, and a client that is interested in “hot patching” a function implementation is probably not expecting this?
—
Mehdi
More information about the llvm-dev
mailing list