[ARM] Define subtarget feature "reserve-r9", which is used to decide
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 21 Jul 2015 01:42:02 +0000 (01:42 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 21 Jul 2015 01:42:02 +0000 (01:42 +0000)
commit27ac0fae47d757283cde49b1f28e772480979f09
tree93e2a95eb75299ee9ab4803247a50a8cde07c4fb
parent16cb7fc21c4883c02f239fc41a544e6171d3e036
[ARM] Define subtarget feature "reserve-r9", which is used to decide
whether register r9 should be reserved.

This recommits r242737, which broke bots because the number of subtarget
features went over the limit of 64.

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

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

rdar://problem/21529937

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242756 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARM.td
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/ARMSubtarget.h
test/CodeGen/ARM/2007-03-13-InstrSched.ll
test/CodeGen/ARM/build-attributes.ll