[AArch64] Define subtarget feature "reserve-x18", which is used to decide
authorAkira Hatanaka <ahatanaka@apple.com>
Sat, 25 Jul 2015 00:18:31 +0000 (00:18 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Sat, 25 Jul 2015 00:18:31 +0000 (00:18 +0000)
commite934b449d4181ebb92bd40e2dc4a034f114b671b
tree8fdb611f8e32f0e8fbd88b3e633fbffe90192ea4
parentcbfbb3ee4c9b215cd367db3b64dfef0a7f334369
[AArch64] Define subtarget feature "reserve-x18", which is used to decide
whether register x18 should be reserved.

This change is needed because we cannot use a backend option to set
cl::opt "aarch64-reserve-x18" when doing LTO.

Out-of-tree projects currently using cl::opt option "-aarch64-reserve-x18"
to reserve x18 should make changes to add subtarget feature "reserve-x18"
to the IR.

rdar://problem/21529937

Differential Revision: http://reviews.llvm.org/D11463

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