summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-10-27 18:32:23 +0000
committerErich Keane <erich.keane@intel.com>2017-10-27 18:32:23 +0000
commitcf8807c931fc2e8d6cd44cb38db49611758696f6 (patch)
treeb120ac99e3a383b73962aa3667c8c7f66d793855 /clang/lib/Basic
parentbc2b1650d7d59a4d24dccd4eb3992e5cd17acd65 (diff)
downloadbcm5719-llvm-cf8807c931fc2e8d6cd44cb38db49611758696f6.tar.gz
bcm5719-llvm-cf8807c931fc2e8d6cd44cb38db49611758696f6.zip
Filter out invalid 'target' items from being passed to LLVM
Craig noticed that CodeGen wasn't properly ignoring the values sent to the target attribute. This patch ignores them. This patch also sets the 'default' for this checking to 'supported', since only X86 has implemented the support for checking valid CPU names and Feature Names. One test was changed to i686, since it uses a lakemont, which would otherwise be prohibited in x86_64. Differential Revision: https://reviews.llvm.org/D39357 llvm-svn: 316783
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets/X86.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 8338e510dcc..93dcd4e234c 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -1169,6 +1169,7 @@ bool X86TargetInfo::isValidFeatureName(StringRef Name) const {
.Case("sse4.2", true)
.Case("sse4a", true)
.Case("tbm", true)
+ .Case("x87", true)
.Case("xop", true)
.Case("xsave", true)
.Case("xsavec", true)
OpenPOWER on IntegriCloud