]> granicus.if.org Git - clang/commit
OpenCL C: Add support for a set of floating point
authorPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>
Wed, 10 Dec 2014 16:41:14 +0000 (16:41 +0000)
committerPekka Jaaskelainen <pekka.jaaskelainen@tut.fi>
Wed, 10 Dec 2014 16:41:14 +0000 (16:41 +0000)
commit5aa3ce1cb49145435e6cf783d4ea04e2bf4307b7
tree353b3f5b9ddeb77ef85469b4cc0c871211833325
parent925773aa6003eeca8862d54580425757d34fd8b2
OpenCL C: Add support for a set of floating point
arithmetic relaxation flags:

-cl-no-signed-zeros
-cl-unsafe-math-optimizations
-cl-finite-math-only
-cl-fast-relaxed-math

Propagate the info to FP instruction flags as well
as function attributes where they are available.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223928 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CC1Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CodeGenFunction.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenOpenCL/relaxed-fpmath.cl [new file with mode: 0644]