Driver: Implement -cl-denorms-are-zero

This is currently a no-op, which is allowed by the OpenCL specification.

llvm-svn: 216179
This commit is contained in:
Tom Stellard 2014-08-21 13:58:36 +00:00
parent e07caad9e7
commit f414fb75b0
2 changed files with 7 additions and 0 deletions

View File

@ -574,6 +574,8 @@ def cl_mad_enable : Flag<["-"], "cl-mad-enable">,
HelpText<"OpenCL only. Enable less precise MAD instructions to be generated.">;
def cl_std_EQ : Joined<["-"], "cl-std=">,
HelpText<"OpenCL language standard to compile for">;
def cl_denorms_are_zero : Flag<["-"], "cl-denorms-are-zero">,
HelpText<"OpenCL only. Allow denormals to be flushed to zero">;
//===----------------------------------------------------------------------===//
// CUDA Options

View File

@ -0,0 +1,5 @@
// RUN: %clang_cc1 -S -cl-denorms-are-zero -o - %s 2>&1
// This test just checks that the -cl-denorms-are-zero argument is accepted
// by clang. This option is currently a no-op, which is allowed by the
// OpenCL specification.