ARMTargetParser: Normalising build attributes
authorRenato Golin <renato.golin@linaro.org>
Wed, 27 May 2015 18:15:37 +0000 (18:15 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 27 May 2015 18:15:37 +0000 (18:15 +0000)
commita052a77187dd701980c48c3e7b76a537c7921522
treefb166ffb805b76524745fe5e42c6e671e0b8c651
parentfb421f446e09388b8ad2edc33d5f8dae180a7046
ARMTargetParser: Normalising build attributes

Now that most of the methods in Clang and LLVM that were parsing arch/cpu/fpu
strings are using ARMTargetParser, it's time to make it a bit more conforming
with what the ABI says.

This commit adds some clarification on what build attributes are accepted and
which are "non-standard". It also makes clear that the "defaultCPU" and
"defaultArch" methods were really just build attribute getters.

It also diverges from GCC's behaviour to say that armv2/armv3 are really an
ARMv4 in the build attributes, when the ABI has a clear state for that: Pre-v4.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238344 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/TargetParser.h
lib/Support/TargetParser.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/MC/ARM/directive-arch-armv2.s
test/MC/ARM/directive-arch-armv2a.s
test/MC/ARM/directive-arch-armv3.s
test/MC/ARM/directive-arch-armv3m.s