[PATCH] D16686: [OpenCL] Generate metadata for opencl_unroll_hint attribute

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 10 07:29:17 PST 2016


Anastasia added inline comments.

================
Comment at: test/SemaOpenCL/unroll-hint-cl20.cl:1
@@ +1,2 @@
+//RUN: %clang_cc1 -O0 -cl-std=CL2.0 -fsyntax-only -verify %s
+
----------------
Could we just combine this with test/SemaOpenCL/unroll-hint.cl.

You can have two RUN lines and pass something like -DCL20 in one of them (for CL2.0). It will then allow you to #ifdef the CL2.0 code. You can see the example in:

  test/Parser/opencl-atomics-cl20.cl


http://reviews.llvm.org/D16686





More information about the cfe-commits mailing list