r229403 - OpenCL: Accept -cl-strict-aliasing

Matt Arsenault Matthew.Arsenault at amd.com
Mon Feb 16 08:43:13 PST 2015


Author: arsenm
Date: Mon Feb 16 10:43:13 2015
New Revision: 229403

URL: http://llvm.org/viewvc/llvm-project?rev=229403&view=rev
Log:
OpenCL: Accept -cl-strict-aliasing

This was in 1.0, but deprecated in 1.1. Accept it and do nothing
for compatability.

Added:
    cfe/trunk/test/CodeGenOpenCL/cl-strict-aliasing.cl
Modified:
    cfe/trunk/include/clang/Driver/CC1Options.td

Modified: cfe/trunk/include/clang/Driver/CC1Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=229403&r1=229402&r2=229403&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/CC1Options.td (original)
+++ cfe/trunk/include/clang/Driver/CC1Options.td Mon Feb 16 10:43:13 2015
@@ -577,6 +577,8 @@ def detailed_preprocessing_record : Flag
 
 def cl_opt_disable : Flag<["-"], "cl-opt-disable">,
   HelpText<"OpenCL only. This option disables all optimizations. The default is optimizations are enabled.">;
+def cl_strict_aliasing : Flag<["-"], "cl-strict-aliasing">,
+  HelpText<"OpenCL only. This option does nothing and is for compatibility with OpenCL 1.0">;
 def cl_single_precision_constant : Flag<["-"], "cl-single-precision-constant">,
   HelpText<"OpenCL only. Treat double precision floating-point constant as single precision constant.">;
 def cl_finite_math_only : Flag<["-"], "cl-finite-math-only">,

Added: cfe/trunk/test/CodeGenOpenCL/cl-strict-aliasing.cl
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenOpenCL/cl-strict-aliasing.cl?rev=229403&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenOpenCL/cl-strict-aliasing.cl (added)
+++ cfe/trunk/test/CodeGenOpenCL/cl-strict-aliasing.cl Mon Feb 16 10:43:13 2015
@@ -0,0 +1 @@
+// RUN: %clang_cc1 -x cl -emit-llvm -cl-strict-aliasing %s





More information about the cfe-commits mailing list