[PATCH] D20493: [CUDA] Add -fcuda-approx-transcendentals flag.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Mon May 23 11:27:30 PDT 2016


jlebar updated this revision to Diff 58123.
jlebar added a comment.

More tightly scope the __USE_FAST_MATH__ macro.

tra pointed out that device_functions.hpp uses __USE_FAST_MATH__ for its own
purposes.  For this CL, we only want to define __USE_FAST_MATH__ around
math_functions.hpp.


http://reviews.llvm.org/D20493

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20493.58123.patch
Type: text/x-patch
Size: 5708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160523/65721c92/attachment.bin>


More information about the cfe-commits mailing list