Make march/target-cpu print a note with the list of valid values for ARM
authorErich Keane <erich.keane@intel.com>
Thu, 8 Feb 2018 23:14:15 +0000 (23:14 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 8 Feb 2018 23:14:15 +0000 (23:14 +0000)
commit3ec1743d0d774cea88d5e9e07b100250c0e7f85c
tree48312c89fdae16944846174020112964bb7915e9
parentb38799c105019617c4373fcc3da61a48e67bae45
Make march/target-cpu print a note with the list of valid values for ARM

When rejecting a march= or target-cpu command line parameter,
the message is quite lacking. This patch adds a note that prints
all possible values for the current target, if the target supports it.

This adds support for the ARM/AArch64 targets (more to come!).

Differential Revision: https://reviews.llvm.org/D42978

llvm-svn: 324673
clang/include/clang/Basic/DiagnosticCommonKinds.td
clang/include/clang/Basic/TargetInfo.h
clang/lib/Basic/Targets.cpp
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/AArch64.h
clang/lib/Basic/Targets/ARM.cpp
clang/lib/Basic/Targets/ARM.h