[ARM] Handle +t2dsp feature as an ArchExtKind in ARMTargetParser.def
authorArtyom Skrobov <Artyom.Skrobov@arm.com>
Mon, 21 Sep 2015 12:43:10 +0000 (12:43 +0000)
committerArtyom Skrobov <Artyom.Skrobov@arm.com>
Mon, 21 Sep 2015 12:43:10 +0000 (12:43 +0000)
commit7dfb31c3292d0059c3f3bd6617e471f2c6358315
treedb26ea89407b8ca5d860d022837c04424f6212f4
parent648a027c82f27afca8f561afcc9f68298610b364
[ARM] Handle +t2dsp feature as an ArchExtKind in ARMTargetParser.def

Currently, the availability of DSP instructions (ACLE 6.4.7) is handled in a
hand-rolled tricky condition block in tools/clang/lib/Basic/Targets.cpp, with
a FIXME: attached.

This patch changes the handling of +t2dsp to be in line with other
architecture extensions.

Following review comments, also updating the description of FeatureDSPThumb2
in ARM.td.

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

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