diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-06-02 16:55:12 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-06-02 16:55:12 +0000 |
commit | d79da01631cc1a2566092e0297e5068197d0c6cf (patch) | |
tree | 62d1d260168e7f01faa54cc26f2a4b74b0bb69c7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | f59d050968b91ced03d786a7e8ab77c0bba91f24 (diff) | |
download | llvm-d79da01631cc1a2566092e0297e5068197d0c6cf.zip llvm-d79da01631cc1a2566092e0297e5068197d0c6cf.tar.gz llvm-d79da01631cc1a2566092e0297e5068197d0c6cf.tar.bz2 |
add the -mrecip driver flag and process its options (2nd try)
The first try to land this (r238055) was reverted due to bot failures
caused by the LLVM part of the patch. That was hopefully fixed by r238788,
and the LLVM patch was resubmitted at r238842.
This is the front-end counterpart to D8982.
The -mrecip option interface is based on maintaining compatibility with gcc:
https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/i386-and-x86-64-Options.html#index-mrecip_003dopt-1627
https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/RS_002f6000-and-PowerPC-Options.html#index-mrecip-2289
...while adding more functionality (allowing users to specify the number of refinement steps for each
estimate type).
Differential Revision: http://reviews.llvm.org/D8989
llvm-svn: 238851
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 9485767..802612c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1846,7 +1846,7 @@ static void ParseTargetArgs(TargetOptions &Opts, ArgList &Args) { Opts.FeaturesAsWritten = Args.getAllArgValues(OPT_target_feature); Opts.LinkerVersion = Args.getLastArgValue(OPT_target_linker_version); Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple)); - + Opts.Reciprocals = Args.getAllArgValues(OPT_mrecip_EQ); // Use the default target triple if unspecified. if (Opts.Triple.empty()) Opts.Triple = llvm::sys::getDefaultTargetTriple(); |