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)
commitf7c0d5f2471824fe2b961ab9674fb503e6196eac
treea9e345b204c378972ce4a13472399751c8f03a93
parent90811cb073c87e6921533fa90c881e6a0f80f7e9
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.

llvm-svn: 238344
llvm/include/llvm/Support/TargetParser.h
llvm/lib/Support/TargetParser.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
llvm/test/MC/ARM/directive-arch-armv2.s
llvm/test/MC/ARM/directive-arch-armv2a.s
llvm/test/MC/ARM/directive-arch-armv3.s
llvm/test/MC/ARM/directive-arch-armv3m.s