diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-16 19:22:08 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2016-12-16 19:22:08 +0000 |
commit | 30d9d8921a58be7a796ab22bd3ac6eb350ab9629 (patch) | |
tree | 9abe2cae1232fb6dfad42540f24cdc185e62e608 /lib/Headers | |
parent | b206e2ea7775db49cd2a0b21f64c792b2b9e1ec7 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Headers')
-rw-r--r-- | lib/Headers/opencl-c.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Headers/opencl-c.h b/lib/Headers/opencl-c.h index 004eca35a2..0c25d31270 100644 --- a/lib/Headers/opencl-c.h +++ b/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. |