[ARM] Define subtarget feature "reserve-r9", which is used to decide
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 20 Jul 2015 23:21:30 +0000 (23:21 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 20 Jul 2015 23:21:30 +0000 (23:21 +0000)
commita22e4b71f4cfa6678f7353eae8aceddde1cbd9bd
treec3ee7d7ecb26b27017be8bbb2cb5c1bdae95aa55
parentf87866e744b3d106ae7decfcbf0bb3dbd4a3b998
[ARM] Define subtarget feature "reserve-r9", which is used to decide
whether register r9 should be reserved.

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@242737 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