diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2016-03-30 15:51:24 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2016-03-30 15:51:24 +0000 |
commit | 3ace74a414dd60d384a7ddfb52a9ce98b9f99eaf (patch) | |
tree | a787f670224c67a97257c1332851b113393c6385 /clang/lib/Basic/Targets.cpp | |
parent | 8dd66e5753bcff1a7ea6bd217db0a94c6cb98585 (diff) | |
download | bcm5719-llvm-3ace74a414dd60d384a7ddfb52a9ce98b9f99eaf.tar.gz bcm5719-llvm-3ace74a414dd60d384a7ddfb52a9ce98b9f99eaf.zip |
[SystemZ] Specify required features for builtins.
BuiltinsSystemZ.def is extended to include the required processor
features per intrinsic.
New test test/CodeGen/builtins-systemz-error2.c that checks for
expected errors when instrinsics are used with a subtarget that does
not support the required feature (e.g. vector support).
Reviewed by Ulrich Weigand.
llvm-svn: 264873
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r-- | clang/lib/Basic/Targets.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index f6bb8a5b0e1..b3dc80b5565 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -6491,6 +6491,8 @@ public: const Builtin::Info SystemZTargetInfo::BuiltinInfo[] = { #define BUILTIN(ID, TYPE, ATTRS) \ { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, nullptr }, +#define TARGET_BUILTIN(ID, TYPE, ATTRS, FEATURE) \ + { #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, FEATURE }, #include "clang/Basic/BuiltinsSystemZ.def" }; |