<div dir="ltr"><span style="font-size:12.8000001907349px">gentle </span><span class="" style="font-size:12.8000001907349px;background-color:rgb(255,255,255)">ping</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 13, 2015 at 6:17 PM, Marius Wachtler <span dir="ltr"><<a href="mailto:undingen@gmail.com" target="_blank">undingen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div>The attached patch implements support for embedding symbols in the array of large constants inside a stackmap/patchpoint.<div>We (=Pyston project) embed in the LLVM IR we generate a lot of pointers to external constants. I would like to cache the JITed functions and therefore I need to make the embedded constants relocatable -> change the IR to refer to module variables instead which I can replace when loading the cached object.</div><div>Currently when a patchpoint has a constant variable as live argument it will materialize it in a register. Which we don't want because the live variables are rarely used (also the regalloc runs out of registers when having to many const variables as argument to the pp?!?...). </div><div>This patch emits a symbol reference inside the array of large constants in the stackmap. The stack map format is untouched by this patch.</div><div><br></div><div><div>Together with <a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150330/269160.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150330/269160.html</a> this should make it possible to cache more JITed functions containing patchpoints.</div><div><br></div><div>Looking forward to comments on this patch.</div><div>Cheers,</div><div>Marius</div><div><br></div><div><br></div></div></div>
</blockquote></div><br></div>