diff options
| author | Chad Rosier <mcrosier@apple.com> | 2012-04-04 20:39:32 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2012-04-04 20:39:32 +0000 |
| commit | 1f0e52e3616c222e3c5d3a25182f79a09128b6c8 (patch) | |
| tree | 75e16115594a3273159419e45f747b42b2ee12bc /clang/lib/Basic | |
| parent | 7e8a601c56760905208ee748daf74bc302fb905c (diff) | |
| download | bcm5719-llvm-1f0e52e3616c222e3c5d3a25182f79a09128b6c8.tar.gz bcm5719-llvm-1f0e52e3616c222e3c5d3a25182f79a09128b6c8.zip | |
[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
llvm-svn: 154046
Diffstat (limited to 'clang/lib/Basic')
| -rw-r--r-- | clang/lib/Basic/Targets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 1fcef3392f6..26fdca2447f 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/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; |

