summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorOliver Stannard <oliver.stannard@arm.com>2016-02-11 16:05:52 +0000
committerOliver Stannard <oliver.stannard@arm.com>2016-02-11 16:05:52 +0000
commit3086c04a93fc768b3c3931ae8b6266b51599deea (patch)
tree277c843523cee554eabc923c59c73c6e02e559e1 /clang/lib/Basic/Targets.cpp
parentfbd0176d6c33c784959b721c7637e543af7aea60 (diff)
downloadbcm5719-llvm-3086c04a93fc768b3c3931ae8b6266b51599deea.tar.gz
bcm5719-llvm-3086c04a93fc768b3c3931ae8b6266b51599deea.zip
[ARM] Add command-line options for ARMv8.2-A
This allows ARMv8.2-A to be targeted either by using "armv8.2a" in the triple, or by using -march=armv8.2-a (or the alias -march=armv8.2a). The FP16 extension can be enabled with the "+fp16" suffix to the -march or -mcpu option. This is consistent with the AArch64 option, rather than the usual ARM option of -mfpu. We have agreed with the team which will be upstreaming this to GCC that we want to use this new option format for new architecture extensions for both ARM and AArch64. Most of the work for this was done by the TargetParser patch in llvm. Differential Revision: http://reviews.llvm.org/D15040 llvm-svn: 260533
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index 6fd1505ea62..44f3cc9ee19 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -4473,6 +4473,8 @@ class ARMTargetInfo : public TargetInfo {
return "8A";
case llvm::ARM::AK_ARMV8_1A:
return "8_1A";
+ case llvm::ARM::AK_ARMV8_2A:
+ return "8_2A";
}
}
OpenPOWER on IntegriCloud