]> granicus.if.org Git - clang/commit
[CUDA] Add -fcuda-flush-denormals-to-zero.
authorJustin Lebar <jlebar@google.com>
Tue, 5 Apr 2016 18:26:20 +0000 (18:26 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 5 Apr 2016 18:26:20 +0000 (18:26 +0000)
commit92b0ff91a2faa573f171d41835303114a24d6729
tree942570bf189f00086b58bd8307b6b4118dc8d2c8
parent1abb3092f1f962ad6c3380f9da6e916faf90c53c
[CUDA] Add -fcuda-flush-denormals-to-zero.

Summary:
Setting this flag causes all functions are annotated with the
"nvvm-f32ftz" = "true" attribute.

In addition, we annotate the module with "nvvm-reflect-ftz" set
to 0 or 1, depending on whether -cuda-flush-denormals-to-zero is set.
This is read by the NVVMReflect pass.

Reviewers: tra, rnk

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265435 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/Options.td
lib/CodeGen/CGCall.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Driver/ToolChains.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCUDA/flush-denormals.cu [new file with mode: 0644]