aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-04-04 20:39:32 +0000
committerChad Rosier <mcrosier@apple.com>2012-04-04 20:39:32 +0000
commit7a938fa66be42710b034a79106de337a275fd265 (patch)
tree503e48f32b4b1acfc430766e4ccfca520752fb1e /lib/Basic/Targets.cpp
parent878f8502ebea491b818b48e342f9ad9de2feaff6 (diff)
[driver] Create a new -mfpmath= option, which is used to control whether clang
uses Neon instructions for single-precision FP. -mfpmath=neon is analogous to passing llc -mattr=+neonfp. -mfpmath=[vfp|vfp2|vfp3|vfp4] is analogous to passing llc -mattr=-neonfp. rdar://11108618 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r--lib/Basic/Targets.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp
index 1fcef3392f..26fdca2447 100644
--- a/lib/Basic/Targets.cpp
+++ b/lib/Basic/Targets.cpp
@@ -2730,7 +2730,8 @@ public:
StringRef Name,
bool Enabled) const {
if (Name == "soft-float" || Name == "soft-float-abi" ||
- Name == "vfp2" || Name == "vfp3" || Name == "neon" || Name == "d16") {
+ Name == "vfp2" || Name == "vfp3" || Name == "neon" || Name == "d16" ||
+ Name == "neonfp") {
Features[Name] = Enabled;
} else
return false;