[LLVMdev] RFC: PerfGuide for frontend authors
Philip Reames
listmail at philipreames.com
Sun Mar 1 09:29:55 PST 2015
> On Mar 1, 2015, at 2:27 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
>
>> On 24 Feb 2015, at 00:46, Philip Reames <listmail at philipreames.com> wrote:
>>
>> - Use globals not inttoptr for runtime structures - this gives you dereferenceability information
>
> Do we have a mechanism for specifying an address for a global? The places I use inttoptr for runtime structures are all places outside of the JIT environment that I want to specify. Being able to create anonymous globals at a specified address would be very helpful.
Not sure. My use cases is using the getSymbolAddress mechanism in MCJIT. Can anyone else comment?
Also, we could consider adding a deref(n) metadata to inttoptr or a deref.load metadata to loads to resolve this differently. Either or both are reasonable; I just haven't gotten around to it yet.
>
> David
>
More information about the llvm-dev
mailing list