[PATCH] Allow the frontend to reserve x18 on AArch64

Andrew Turner andrew at fubar.geek.nz
Tue Jan 20 09:59:52 PST 2015


Hello,

The attached patch allows the x18 platform register on AArch64 to be
reserved by users of llvm.

On FreeBSD we don't normally need to reserve this register, except in
the kernel where we need to reserve it for a global pointer that needs
to be accessed in a single instruction.

I have a second patch at [1] that depends on this for clang that makes
use of this function.

Andrew

[1] https://people.freebsd.org/~andrew/clang/clang_fixed_x18.diff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm_fixed_x18.diff
Type: text/x-patch
Size: 2735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150120/3c2c314b/attachment.bin>


More information about the llvm-commits mailing list