]> granicus.if.org Git - clang/commit
[CUDA] Add -fcuda-approx-transcendentals flag.
authorJustin Lebar <jlebar@google.com>
Mon, 23 May 2016 20:19:56 +0000 (20:19 +0000)
committerJustin Lebar <jlebar@google.com>
Mon, 23 May 2016 20:19:56 +0000 (20:19 +0000)
commit445e59e90c1afb49c4f09fe8fcc1c85318967a2b
treea544e4d7b179118db9fb427271158ffc37c3d008
parentcfc5968efb264f6cd7b89cb4778300fc09043478
[CUDA] Add -fcuda-approx-transcendentals flag.

Summary:
This lets us emit e.g. sin.approx.f32.  See
http://docs.nvidia.com/cuda/parallel-thread-execution/#floating-point-instructions-sin

Reviewers: rnk

Subscribers: tra, cfe-commits

Differential Revision: http://reviews.llvm.org/D20493

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270484 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/Options.td
lib/Driver/ToolChains.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
lib/Headers/__clang_cuda_runtime_wrapper.h
test/Preprocessor/cuda-approx-transcendentals.cu [new file with mode: 0644]