[llvm-dev] RFC: New function attribute "patchable-prologue"="<kind>"

Eric Christopher via llvm-dev llvm-dev at lists.llvm.org
Wed Apr 13 13:13:09 PDT 2016


On Thu, Apr 7, 2016 at 4:35 PM Sanjoy Das <sanjoy at playingwithpointers.com>
wrote:

> Hi Eric,
>
> Eric Christopher wrote:
>  > Two things:
>  >
>  > a) I'm not against this
>
> Great!
>
>  > b) So, what's your use case? I've got something I'm idly working on with
>  > someone else where we want patchable targets in both prologue and
>  > epilogue (and some other places...), and am thinking of how to make this
>  > someone generic enough to build off of there.
>
> We plan to use this to be able to divert control flow from an LLVM
> compiled function to "somewhere else" where the "somewhere else" is
> usually a differently optimized version of the same function.  One
>
>
Right. So, I've got a use case that I'm working on over here that uses,
basically, patchable prologue and epilogue and am hoping that this ends up
being general enough for both.

I'll take a look at the patch since you've sent it out, but would really
like to not have to change a lot of how it works. :)

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160413/ac2929c1/attachment.html>


More information about the llvm-dev mailing list