]> granicus.if.org Git - clang/commit
add the -mrecip driver flag and process its options (2nd try)
authorSanjay Patel <spatel@rotateright.com>
Tue, 2 Jun 2015 16:55:12 +0000 (16:55 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 2 Jun 2015 16:55:12 +0000 (16:55 +0000)
commitd1c4ddae4b9b7ac7806fb1330b47714f75f9c8a1
treec271b367b6ed2ae0993c37ac60f18bca857b16de
parent7a6350f29124783ca9c39247ffbe4c1ddd8e17d5
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238851 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetOptions.h
include/clang/Driver/Options.td
lib/CodeGen/BackendUtil.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/mrecip.c [new file with mode: 0644]