Use ".arch_extension" ARM directive to specify the additional CPU features
authorSumanth Gundapaneni <sgundapa@codeaurora.org>
Thu, 26 Feb 2015 18:07:35 +0000 (18:07 +0000)
committerSumanth Gundapaneni <sgundapa@codeaurora.org>
Thu, 26 Feb 2015 18:07:35 +0000 (18:07 +0000)
commita9049ea36848df64e26d3c11a11dd393fb469e79
tree54f21f1c06ab32001f527d25430f11cd303433d8
parent947efbc138b30250da0baf6c4fe0f19b236dfc2c
Use ".arch_extension" ARM directive to specify the additional CPU features

This patch is in response to r223147 where the avaiable features are
computed based on ".cpu" directive. This will work clean for the standard
variants like cortex-a9. For custom variants which rely on standard cpu names
for assembly, the additional features of a CPU should be propagated. This can be
done via ".arch_extension" as long as the assembler supports it. The
implementation for krait along with unit test will be submitted in next patch.

llvm-svn: 230650
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/Target/ARM/ARMArchExtName.def [new file with mode: 0644]
llvm/lib/Target/ARM/ARMArchExtName.h [new file with mode: 0644]
llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp