AArch64: add backend option to reserve x18 (platform register)
authorTim Northover <tnorthover@apple.com>
Wed, 21 Jan 2015 15:43:31 +0000 (15:43 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 21 Jan 2015 15:43:31 +0000 (15:43 +0000)
commit004d72554906df08fee31f30f88244e61652c287
treeb54a0b52688bde09edbcaf6a7eb66b3d2c7aa5a4
parent47f47f5d2a94c2fcd2b3090d2547ec1f4bf4b03b
AArch64: add backend option to reserve x18 (platform register)

AAPCS64 says that it's up to the platform to specify whether x18 is
reserved, and a first step on that way is to add a flag controlling
it.

From: Andrew Turner <andrew@fubar.geek.nz>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64RegisterInfo.cpp
test/CodeGen/AArch64/arm64-platform-reg.ll