summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/opencl-c.h
diff options
context:
space:
mode:
authorYaxun Liu <Yaxun.Liu@amd.com>2016-12-16 19:22:08 +0000
committerYaxun Liu <Yaxun.Liu@amd.com>2016-12-16 19:22:08 +0000
commit2e8331cab61615d3831f4eb497a38171eaccc9e7 (patch)
tree9d77b116da67230781caacc4fd5d82c9260b17d8 /clang/lib/Headers/opencl-c.h
parenta4e7dfbc16e6e9c786f01a325a3663e8028b4cc0 (diff)
downloadbcm5719-llvm-2e8331cab61615d3831f4eb497a38171eaccc9e7.tar.gz
bcm5719-llvm-2e8331cab61615d3831f4eb497a38171eaccc9e7.zip
[OpenCL] Allow disabling types and declarations associated with extensions
Added a map to associate types and declarations with extensions. Refactored existing diagnostic for disabled types associated with extensions and extended it to declarations for generic situation. Fixed some bugs for types associated with extensions. Allow users to use pragma to declare types and functions for supported extensions, e.g. #pragma OPENCL EXTENSION the_new_extension_name : begin // declare types and functions associated with the extension here #pragma OPENCL EXTENSION the_new_extension_name : end Differential Revision: https://reviews.llvm.org/D21698 llvm-svn: 289979
Diffstat (limited to 'clang/lib/Headers/opencl-c.h')
-rw-r--r--clang/lib/Headers/opencl-c.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h
index 004eca35a22..0c25d312709 100644
--- a/clang/lib/Headers/opencl-c.h
+++ b/clang/lib/Headers/opencl-c.h
@@ -15490,6 +15490,10 @@ int printf(__constant const char* st, ...);
#define CLK_FILTER_NEAREST 0x10
#define CLK_FILTER_LINEAR 0x20
+#ifdef cl_khr_gl_msaa_sharing
+#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable
+#endif //cl_khr_gl_msaa_sharing
+
/**
* Use the coordinate (coord.xy) to do an element lookup in
* the 2D image object specified by image.
OpenPOWER on IntegriCloud