[ARM] Allow TargetParser to accurately target architectures
authorBradley Smith <bradley.smith@arm.com>
Mon, 16 Nov 2015 11:15:22 +0000 (11:15 +0000)
committerBradley Smith <bradley.smith@arm.com>
Mon, 16 Nov 2015 11:15:22 +0000 (11:15 +0000)
commit870fdb54c3aebe7ba21894814cb27dccba19c837
tree4de82788b6940c53a42c7d3a52142baebf9ad52c
parent7c1b77248baaeafec5d6433c3d1da9a2e2b69595
[ARM] Allow TargetParser to accurately target architectures

Instead of defaulting to an empty string, we want to default to
the CPU 'generic' in the case of no valid default CPU being found,
(as long as the architecture is actually valid).

In order to do this we add a default FPU for each architecture, as
well as falling back to architecture defaults for extensions and FPU
in the case of a generic CPU is specified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253198 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ARMTargetParser.def
include/llvm/Support/TargetParser.h
lib/Support/TargetParser.cpp