Displaying 2 results from an estimated 2 matches for "r175258".
2013 Jun 24
2
[LLVMdev] Contants generation
Hi,
I'd like to generate constants inside .text in order to use ip-relative loads, when the code model is "large".
How can I do this?
(I'm on X86_64 linux)
Thank you.
- Elena
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the
2013 Jun 25
0
[LLVMdev] Contants generation
...n be reached when needed. This is probably
unnecessary with x86's +/- 2GB limit. Any single function over 2GB in
size has bigger problems than where its constants are.
Actually, originally the AArch64 backend did the same thing but I
switched to the x86 model back in February. Which means thar r175258
is a nice potted (but reversed) description of all the steps needed.
Ignore the more baroque parts of AArch64ConstantIslandsPass.cpp, yours
will probably only have to add a bunch of CONSTPOOL_ENTRYs at the end
of the function (the doInitialPlacement method, though even that does
more than you need)...