diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-04-07 18:11:39 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-04-07 18:11:39 +0000 |
commit | 4a9cbd8c0ae9bdce2351eb232bd797074f33ff22 (patch) | |
tree | c7a26990a1531caf835a6bc6018639751eb5a008 | |
parent | 32505b8d926929a70c1cfb3a6e6b691439fd9023 (diff) |
Added new build options for v1.2
Added a few build options to clBuildProgram() for v1.2 spec.
This enables following Khronos v1.2 conformance tests to pass:
% test_compiler options_build_optimizations
% test_compiler options_denorm_cache
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
-rw-r--r-- | src/core/compiler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/compiler.cpp b/src/core/compiler.cpp index bbfd3da..bc7dd18 100644 --- a/src/core/compiler.cpp +++ b/src/core/compiler.cpp @@ -223,6 +223,18 @@ int Compiler::compile(const std::string &options, codegen_opts.NoNaNsFPMath = true; lang_opts.FastRelaxedMath = true; } + else if (token == "-cl-denorms-are-zero") + { + //noop: there seems to be no corresponding clang option. + } + else if (token == "-cl-strict-aliasing") + { + codegen_opts.StructPathTBAA = false; // inverse of -fno-strict-aliasing + } + else if (token == "-cl-no-signed-zeros") + { + codegen_opts.NoSignedZeros = true; + } else if (token == "-w") { diag_opts.IgnoreWarnings = true; |