summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2015-11-26 15:38:54 +0000
committerOliver Stannard <oliver.stannard@arm.com>2015-11-26 15:38:54 +0000
commit4cc70802c773e832c0d05789a96c976397218a65 (patch)
tree83b8163259a9fe657a8ee9618fef3264eb74382e /clang/lib/Driver
parent76afca76176ac87d01e956a18c6c70dca7b22ac7 (diff)
downloadbcm5719-llvm-4cc70802c773e832c0d05789a96c976397218a65.tar.gz
bcm5719-llvm-4cc70802c773e832c0d05789a96c976397218a65.zip
[AArch64] Add command-line options for Statistical Profiling Extension
This adds the "+profile" and +noprofile" suffixes for the -march and -mcpu options, to allow enabling or disabling the options Statistical Profiling Extension to ARMv8.2-A. Differential Revision: http://reviews.llvm.org/D15023 llvm-svn: 254161
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/Tools.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 9ae9348792b..426415d13df 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -2032,11 +2032,13 @@ static bool DecodeAArch64Features(const Driver &D, StringRef text,
.Case("crc", "+crc")
.Case("crypto", "+crypto")
.Case("fp16", "+fullfp16")
+ .Case("profile", "+spe")
.Case("nofp", "-fp-armv8")
.Case("nosimd", "-neon")
.Case("nocrc", "-crc")
.Case("nocrypto", "-crypto")
.Case("nofp16", "-fullfp16")
+ .Case("noprofile", "-spe")
.Default(nullptr);
if (result)
Features.push_back(result);
OpenPOWER on IntegriCloud