summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-09-18 10:07:09 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-09-18 10:07:09 +0000
commit1e8637b259a3243efeb8966c349f02eda79ffb1a (patch)
treeffb1f7eb5d30085cc8a63b0f1977d002245e4196 /clang/lib/Basic/Targets.cpp
parent93183ee78c5850cc475f537ca14dd0a83c009bbf (diff)
downloadbcm5719-llvm-1e8637b259a3243efeb8966c349f02eda79ffb1a.tar.gz
bcm5719-llvm-1e8637b259a3243efeb8966c349f02eda79ffb1a.zip
[ARMv8] Add builtins for CRC instructions.
Patch by Bradley Smith! llvm-svn: 190931
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 02baa1fe629..56068b7d364 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -3829,6 +3829,9 @@ public:
// when Neon instructions are actually available.
if ((FPU & NeonFPU) && !SoftFloat && IsARMv7)
Builder.defineMacro("__ARM_NEON__");
+
+ if (CPUArch.startswith("8"))
+ Builder.defineMacro("__ARM_FEATURE_CRC32");
}
virtual void getTargetBuiltins(const Builtin::Info *&Records,
unsigned &NumRecords) const {
OpenPOWER on IntegriCloud