]> granicus.if.org Git - clang/commit
Filter out invalid 'target' items from being passed to LLVM
authorErich Keane <erich.keane@intel.com>
Fri, 27 Oct 2017 18:32:23 +0000 (18:32 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 27 Oct 2017 18:32:23 +0000 (18:32 +0000)
commit0cb2a76a4f9397e6b33d60159f0197d1bcb898e9
tree87a0ce73e3e535a7b44f64b608bd0f4c76c8e1de
parentd86c46ef9674cc4f45d296ebd48263588ca3744c
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316783 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/Targets/X86.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/attr-target-x86.c