authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-20 19:16:06-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-20 19:16:06-04:00
logc0bd2eb3987698ee9b91f6b7ef6eb85526749ed4
treeb44defd52e2699f84f8abad9d51b6b2485089ec6
parent5f3d59f0ac78e01bd50419dab54d7fcbae15f17c
signature Commit is signed but in an unrecognized format.

update C headers to clang 9.0.0-rc2

upstream commit 67a4a12d61bfb10b2410b53c5a43ef9b4a03de7d

3 files changed, 113 insertions(+), 120 deletions(-)

lib/include/emmintrin.h+3-3
......@@ -4029,7 +4029,7 @@ _mm_storeu_si128(__m128i_u *__p, __m128i __b)
40294029/// \param __b
40304030/// A 128-bit integer vector containing the value to be stored.
40314031static __inline__ void __DEFAULT_FN_ATTRS
4032_mm_storeu_si64(void const *__p, __m128i __b)
4032_mm_storeu_si64(void *__p, __m128i __b)
40334033{
40344034 struct __storeu_si64 {
40354035 long long __v;
......@@ -4050,7 +4050,7 @@ _mm_storeu_si64(void const *__p, __m128i __b)
40504050/// \param __b
40514051/// A 128-bit integer vector containing the value to be stored.
40524052static __inline__ void __DEFAULT_FN_ATTRS
4053_mm_storeu_si32(void const *__p, __m128i __b)
4053_mm_storeu_si32(void *__p, __m128i __b)
40544054{
40554055 struct __storeu_si32 {
40564056 int __v;
......@@ -4071,7 +4071,7 @@ _mm_storeu_si32(void const *__p, __m128i __b)
40714071/// \param __b
40724072/// A 128-bit integer vector containing the value to be stored.
40734073static __inline__ void __DEFAULT_FN_ATTRS
4074_mm_storeu_si16(void const *__p, __m128i __b)
4074_mm_storeu_si16(void *__p, __m128i __b)
40754075{
40764076 struct __storeu_si16 {
40774077 short __v;
lib/include/opencl-c-base.h+5-12
......@@ -126,7 +126,7 @@ typedef double double8 __attribute__((ext_vector_type(8)));
126126typedef double double16 __attribute__((ext_vector_type(16)));
127127#endif
128128
129#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
129#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
130130#define NULL ((void*)0)
131131#endif
132132
......@@ -276,7 +276,7 @@ typedef uint cl_mem_fence_flags;
276276 */
277277#define CLK_GLOBAL_MEM_FENCE 0x02
278278
279#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
279#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
280280
281281typedef enum memory_scope {
282282 memory_scope_work_item = __OPENCL_MEMORY_SCOPE_WORK_ITEM,
......@@ -288,9 +288,6 @@ typedef enum memory_scope {
288288#endif
289289} memory_scope;
290290
291#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
292
293#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
294291/**
295292 * Queue a memory fence to ensure correct ordering of memory
296293 * operations between work-items of a work-group to
......@@ -313,7 +310,7 @@ typedef enum memory_order
313310 memory_order_seq_cst = __ATOMIC_SEQ_CST
314311} memory_order;
315312
316#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
313#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
317314
318315// OpenCL v1.1 s6.11.3, v1.2 s6.12.14, v2.0 s6.13.14 - Image Read and Write Functions
319316
......@@ -389,14 +386,10 @@ typedef enum memory_order
389386#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
390387
391388// OpenCL v2.0 s6.13.16 - Pipe Functions
392#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
389#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
393390#define CLK_NULL_RESERVE_ID (__builtin_astype(((void*)(__SIZE_MAX__)), reserve_id_t))
394#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
395
396391
397392// OpenCL v2.0 s6.13.17 - Enqueue Kernels
398#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
399
400393#define CL_COMPLETE 0x0
401394#define CL_RUNNING 0x1
402395#define CL_SUBMITTED 0x2
......@@ -435,7 +428,7 @@ typedef struct {
435428 size_t localWorkSize[MAX_WORK_DIM];
436429} ndrange_t;
437430
438#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
431#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
439432
440433#ifdef cl_intel_device_side_avc_motion_estimation
441434#pragma OPENCL EXTENSION cl_intel_device_side_avc_motion_estimation : begin
lib/include/opencl-c.h+105-105
......@@ -11,11 +11,11 @@
1111
1212#include "opencl-c-base.h"
1313
14#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1515#ifndef cl_khr_depth_images
1616#define cl_khr_depth_images
1717#endif //cl_khr_depth_images
18#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
18#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1919
2020#if __OPENCL_C_VERSION__ < CL_VERSION_2_0
2121#ifdef cl_khr_3d_image_writes
......@@ -23,10 +23,10 @@
2323#endif //cl_khr_3d_image_writes
2424#endif //__OPENCL_C_VERSION__ < CL_VERSION_2_0
2525
26#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
26#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
2727#pragma OPENCL EXTENSION cl_intel_planar_yuv : begin
2828#pragma OPENCL EXTENSION cl_intel_planar_yuv : end
29#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
29#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
3030
3131#define __ovld __attribute__((overloadable))
3232#define __conv __attribute__((convergent))
......@@ -6517,11 +6517,11 @@ size_t __ovld __cnfn get_group_id(uint dimindx);
65176517 */
65186518size_t __ovld __cnfn get_global_offset(uint dimindx);
65196519
6520#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
6520#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
65216521size_t __ovld get_enqueued_local_size(uint dimindx);
65226522size_t __ovld get_global_linear_id(void);
65236523size_t __ovld get_local_linear_id(void);
6524#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
6524#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
65256525
65266526// OpenCL v1.1 s6.11.2, v1.2 s6.12.2, v2.0 s6.13.2 - Math functions
65276527
......@@ -7352,7 +7352,7 @@ half16 __ovld __cnfn fmod(half16 x, half16 y);
73527352 * Returns fmin(x - floor (x), 0x1.fffffep-1f ).
73537353 * floor(x) is returned in iptr.
73547354 */
7355#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7355#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
73567356float __ovld fract(float x, float *iptr);
73577357float2 __ovld fract(float2 x, float2 *iptr);
73587358float3 __ovld fract(float3 x, float3 *iptr);
......@@ -7434,7 +7434,7 @@ half4 __ovld fract(half4 x, __private half4 *iptr);
74347434half8 __ovld fract(half8 x, __private half8 *iptr);
74357435half16 __ovld fract(half16 x, __private half16 *iptr);
74367436#endif //cl_khr_fp16
7437#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7437#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
74387438
74397439/**
74407440 * Extract mantissa and exponent from x. For each
......@@ -7442,7 +7442,7 @@ half16 __ovld fract(half16 x, __private half16 *iptr);
74427442 * magnitude in the interval [1/2, 1) or 0. Each
74437443 * component of x equals mantissa returned * 2^exp.
74447444 */
7445#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7445#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
74467446float __ovld frexp(float x, int *exp);
74477447float2 __ovld frexp(float2 x, int2 *exp);
74487448float3 __ovld frexp(float3 x, int3 *exp);
......@@ -7524,7 +7524,7 @@ half4 __ovld frexp(half4 x, __private int4 *exp);
75247524half8 __ovld frexp(half8 x, __private int8 *exp);
75257525half16 __ovld frexp(half16 x, __private int16 *exp);
75267526#endif //cl_khr_fp16
7527#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7527#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
75287528
75297529/**
75307530 * Compute the value of the square root of x^2 + y^2
......@@ -7649,7 +7649,7 @@ half8 __ovld __cnfn lgamma(half8 x);
76497649half16 __ovld __cnfn lgamma(half16 x);
76507650#endif //cl_khr_fp16
76517651
7652#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7652#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
76537653float __ovld lgamma_r(float x, int *signp);
76547654float2 __ovld lgamma_r(float2 x, int2 *signp);
76557655float3 __ovld lgamma_r(float3 x, int3 *signp);
......@@ -7731,7 +7731,7 @@ half4 __ovld lgamma_r(half4 x, __private int4 *signp);
77317731half8 __ovld lgamma_r(half8 x, __private int8 *signp);
77327732half16 __ovld lgamma_r(half16 x, __private int16 *signp);
77337733#endif //cl_khr_fp16
7734#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
7734#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
77357735
77367736/**
77377737 * Compute natural logarithm.
......@@ -7955,7 +7955,7 @@ half16 __ovld __cnfn minmag(half16 x, half16 y);
79557955 * the argument. It stores the integral part in the object
79567956 * pointed to by iptr.
79577957 */
7958#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
7958#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
79597959float __ovld modf(float x, float *iptr);
79607960float2 __ovld modf(float2 x, float2 *iptr);
79617961float3 __ovld modf(float3 x, float3 *iptr);
......@@ -8037,7 +8037,7 @@ half4 __ovld modf(half4 x, __private half4 *iptr);
80378037half8 __ovld modf(half8 x, __private half8 *iptr);
80388038half16 __ovld modf(half16 x, __private half16 *iptr);
80398039#endif //cl_khr_fp16
8040#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8040#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
80418041
80428042/**
80438043 * Returns a quiet NaN. The nancode may be placed
......@@ -8215,7 +8215,7 @@ half16 __ovld __cnfn remainder(half16 x, half16 y);
82158215 * sign as x/y. It stores this signed value in the object
82168216 * pointed to by quo.
82178217 */
8218#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8218#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
82198219float __ovld remquo(float x, float y, int *quo);
82208220float2 __ovld remquo(float2 x, float2 y, int2 *quo);
82218221float3 __ovld remquo(float3 x, float3 y, int3 *quo);
......@@ -8298,7 +8298,7 @@ half4 __ovld remquo(half4 x, half4 y, __private int4 *quo);
82988298half8 __ovld remquo(half8 x, half8 y, __private int8 *quo);
82998299half16 __ovld remquo(half16 x, half16 y, __private int16 *quo);
83008300#endif //cl_khr_fp16
8301#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8301#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
83028302/**
83038303 * Round to integral value (using round to nearest
83048304 * even rounding mode) in floating-point format.
......@@ -8439,7 +8439,7 @@ half16 __ovld __cnfn sin(half16);
84398439 * is the return value and computed cosine is returned
84408440 * in cosval.
84418441 */
8442#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
8442#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
84438443float __ovld sincos(float x, float *cosval);
84448444float2 __ovld sincos(float2 x, float2 *cosval);
84458445float3 __ovld sincos(float3 x, float3 *cosval);
......@@ -8521,7 +8521,7 @@ half4 __ovld sincos(half4 x, __private half4 *cosval);
85218521half8 __ovld sincos(half8 x, __private half8 *cosval);
85228522half16 __ovld sincos(half16 x, __private half16 *cosval);
85238523#endif //cl_khr_fp16
8524#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
8524#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
85258525
85268526/**
85278527 * Compute hyperbolic sine.
......@@ -9446,7 +9446,7 @@ ulong16 __ovld __cnfn clz(ulong16 x);
94469446 * returns the size in bits of the type of x or
94479447 * component type of x, if x is a vector.
94489448 */
9449#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
9449#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
94509450char __ovld ctz(char x);
94519451uchar __ovld ctz(uchar x);
94529452char2 __ovld ctz(char2 x);
......@@ -9495,7 +9495,7 @@ long8 __ovld ctz(long8 x);
94959495ulong8 __ovld ctz(ulong8 x);
94969496long16 __ovld ctz(long16 x);
94979497ulong16 __ovld ctz(ulong16 x);
9498#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
9498#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
94999499
95009500/**
95019501 * Returns mul_hi(a, b) + c.
......@@ -11340,7 +11340,7 @@ half8 __ovld vload8(size_t offset, const __constant half *p);
1134011340half16 __ovld vload16(size_t offset, const __constant half *p);
1134111341#endif //cl_khr_fp16
1134211342
11343#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11343#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1134411344char2 __ovld vload2(size_t offset, const char *p);
1134511345uchar2 __ovld vload2(size_t offset, const uchar *p);
1134611346short2 __ovld vload2(size_t offset, const short *p);
......@@ -11578,9 +11578,9 @@ half4 __ovld vload4(size_t offset, const __private half *p);
1157811578half8 __ovld vload8(size_t offset, const __private half *p);
1157911579half16 __ovld vload16(size_t offset, const __private half *p);
1158011580#endif //cl_khr_fp16
11581#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11581#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1158211582
11583#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11583#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1158411584void __ovld vstore2(char2 data, size_t offset, char *p);
1158511585void __ovld vstore2(uchar2 data, size_t offset, uchar *p);
1158611586void __ovld vstore2(short2 data, size_t offset, short *p);
......@@ -11814,7 +11814,7 @@ void __ovld vstore4(half4 data, size_t offset, __private half *p);
1181411814void __ovld vstore8(half8 data, size_t offset, __private half *p);
1181511815void __ovld vstore16(half16 data, size_t offset, __private half *p);
1181611816#endif //cl_khr_fp16
11817#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11817#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1181811818
1181911819/**
1182011820 * Read sizeof (half) bytes of data from address
......@@ -11825,13 +11825,13 @@ void __ovld vstore16(half16 data, size_t offset, __private half *p);
1182511825 * must be 16-bit aligned.
1182611826 */
1182711827float __ovld vload_half(size_t offset, const __constant half *p);
11828#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11828#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1182911829float __ovld vload_half(size_t offset, const half *p);
1183011830#else
1183111831float __ovld vload_half(size_t offset, const __global half *p);
1183211832float __ovld vload_half(size_t offset, const __local half *p);
1183311833float __ovld vload_half(size_t offset, const __private half *p);
11834#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11834#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1183511835
1183611836/**
1183711837 * Read sizeof (halfn) bytes of data from address
......@@ -11846,7 +11846,7 @@ float3 __ovld vload_half3(size_t offset, const __constant half *p);
1184611846float4 __ovld vload_half4(size_t offset, const __constant half *p);
1184711847float8 __ovld vload_half8(size_t offset, const __constant half *p);
1184811848float16 __ovld vload_half16(size_t offset, const __constant half *p);
11849#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11849#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1185011850float2 __ovld vload_half2(size_t offset, const half *p);
1185111851float3 __ovld vload_half3(size_t offset, const half *p);
1185211852float4 __ovld vload_half4(size_t offset, const half *p);
......@@ -11868,7 +11868,7 @@ float3 __ovld vload_half3(size_t offset, const __private half *p);
1186811868float4 __ovld vload_half4(size_t offset, const __private half *p);
1186911869float8 __ovld vload_half8(size_t offset, const __private half *p);
1187011870float16 __ovld vload_half16(size_t offset, const __private half *p);
11871#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11871#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1187211872
1187311873/**
1187411874 * The float value given by data is first
......@@ -11881,7 +11881,7 @@ float16 __ovld vload_half16(size_t offset, const __private half *p);
1188111881 * The default current rounding mode is round to
1188211882 * nearest even.
1188311883 */
11884#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11884#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1188511885void __ovld vstore_half(float data, size_t offset, half *p);
1188611886void __ovld vstore_half_rte(float data, size_t offset, half *p);
1188711887void __ovld vstore_half_rtz(float data, size_t offset, half *p);
......@@ -11927,7 +11927,7 @@ void __ovld vstore_half_rtz(double data, size_t offset, __private half *p);
1192711927void __ovld vstore_half_rtp(double data, size_t offset, __private half *p);
1192811928void __ovld vstore_half_rtn(double data, size_t offset, __private half *p);
1192911929#endif //cl_khr_fp64
11930#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
11930#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1193111931
1193211932/**
1193311933 * The floatn value given by data is converted to
......@@ -11940,7 +11940,7 @@ void __ovld vstore_half_rtn(double data, size_t offset, __private half *p);
1194011940 * The default current rounding mode is round to
1194111941 * nearest even.
1194211942 */
11943#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
11943#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1194411944void __ovld vstore_half2(float2 data, size_t offset, half *p);
1194511945void __ovld vstore_half3(float3 data, size_t offset, half *p);
1194611946void __ovld vstore_half4(float4 data, size_t offset, half *p);
......@@ -12146,7 +12146,7 @@ void __ovld vstore_half4_rtn(double4 data, size_t offset, __private half *p);
1214612146void __ovld vstore_half8_rtn(double8 data, size_t offset, __private half *p);
1214712147void __ovld vstore_half16_rtn(double16 data, size_t offset, __private half *p);
1214812148#endif //cl_khr_fp64
12149#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12149#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1215012150
1215112151/**
1215212152 * For n = 1, 2, 4, 8 and 16 read sizeof (halfn)
......@@ -12167,7 +12167,7 @@ float3 __ovld vloada_half3(size_t offset, const __constant half *p);
1216712167float4 __ovld vloada_half4(size_t offset, const __constant half *p);
1216812168float8 __ovld vloada_half8(size_t offset, const __constant half *p);
1216912169float16 __ovld vloada_half16(size_t offset, const __constant half *p);
12170#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12170#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1217112171float __ovld vloada_half(size_t offset, const half *p);
1217212172float2 __ovld vloada_half2(size_t offset, const half *p);
1217312173float3 __ovld vloada_half3(size_t offset, const half *p);
......@@ -12193,7 +12193,7 @@ float3 __ovld vloada_half3(size_t offset, const __private half *p);
1219312193float4 __ovld vloada_half4(size_t offset, const __private half *p);
1219412194float8 __ovld vloada_half8(size_t offset, const __private half *p);
1219512195float16 __ovld vloada_half16(size_t offset, const __private half *p);
12196#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12196#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1219712197
1219812198/**
1219912199 * The floatn value given by data is converted to
......@@ -12211,7 +12211,7 @@ float16 __ovld vloada_half16(size_t offset, const __private half *p);
1221112211 * mode. The default current rounding mode is
1221212212 * round to nearest even.
1221312213 */
12214#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12214#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1221512215void __ovld vstorea_half(float data, size_t offset, half *p);
1221612216void __ovld vstorea_half2(float2 data, size_t offset, half *p);
1221712217void __ovld vstorea_half3(float3 data, size_t offset, half *p);
......@@ -12496,7 +12496,7 @@ void __ovld vstorea_half4_rtn(double4 data,size_t offset, __private half *p);
1249612496void __ovld vstorea_half8_rtn(double8 data,size_t offset, __private half *p);
1249712497void __ovld vstorea_half16_rtn(double16 data,size_t offset, __private half *p);
1249812498#endif //cl_khr_fp64
12499#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12499#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1250012500
1250112501// OpenCL v1.1 s6.11.8, v1.2 s6.12.8, v2.0 s6.13.8 - Synchronization Functions
1250212502
......@@ -12532,10 +12532,10 @@ void __ovld vstorea_half16_rtn(double16 data,size_t offset, __private half *p);
1253212532
1253312533void __ovld __conv barrier(cl_mem_fence_flags flags);
1253412534
12535#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12535#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1253612536void __ovld __conv work_group_barrier(cl_mem_fence_flags flags, memory_scope scope);
1253712537void __ovld __conv work_group_barrier(cl_mem_fence_flags flags);
12538#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12538#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1253912539
1254012540// OpenCL v1.1 s6.11.9, v1.2 s6.12.9 - Explicit Memory Fence Functions
1254112541
......@@ -12580,7 +12580,7 @@ void __ovld write_mem_fence(cl_mem_fence_flags flags);
1258012580
1258112581// OpenCL v2.0 s6.13.9 - Address Space Qualifier Functions
1258212582
12583#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
12583#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1258412584cl_mem_fence_flags __ovld get_fence(const void *ptr);
1258512585cl_mem_fence_flags __ovld get_fence(void *ptr);
1258612586
......@@ -12591,7 +12591,7 @@ cl_mem_fence_flags __ovld get_fence(void *ptr);
1259112591 * where gentype is builtin type or user defined type.
1259212592 */
1259312593
12594#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
12594#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1259512595
1259612596// OpenCL v1.1 s6.11.10, v1.2 s6.12.10, v2.0 s6.13.10 - Async Copies from Global to Local Memory, Local to Global Memory, and Prefetch
1259712597
......@@ -13371,7 +13371,7 @@ unsigned long __ovld atom_xor(volatile __local unsigned long *p, unsigned long v
1337113371
1337213372// OpenCL v2.0 s6.13.11 - Atomics Functions
1337313373
13374#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
13374#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1337513375
1337613376// double atomics support requires extensions cl_khr_int64_base_atomics and cl_khr_int64_extended_atomics
1337713377#if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
......@@ -13692,7 +13692,7 @@ void __ovld atomic_flag_clear(volatile atomic_flag *object);
1369213692void __ovld atomic_flag_clear_explicit(volatile atomic_flag *object, memory_order order);
1369313693void __ovld atomic_flag_clear_explicit(volatile atomic_flag *object, memory_order order, memory_scope scope);
1369413694
13695#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
13695#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1369613696
1369713697// OpenCL v1.1 s6.11.12, v1.2 s6.12.12, v2.0 s6.13.12 - Miscellaneous Vector Functions
1369813698
......@@ -14186,7 +14186,7 @@ half16 __ovld __cnfn shuffle2(half8 x, half8 y, ushort16 mask);
1418614186half16 __ovld __cnfn shuffle2(half16 x, half16 y, ushort16 mask);
1418714187#endif //cl_khr_fp16
1418814188
14189#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14189#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1419014190// OpenCL v1.2 s6.12.13, v2.0 s6.13.13 - printf
1419114191
1419214192int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2)));
......@@ -14307,7 +14307,7 @@ int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, f
1430714307uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, int4 coord);
1430814308uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord);
1430914309
14310#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14310#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1431114311float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
1431214312float4 __purefn __ovld read_imagef(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
1431314313
......@@ -14315,7 +14315,7 @@ int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_
1431514315int4 __purefn __ovld read_imagei(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
1431614316uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, int4 coord);
1431714317uint4 __purefn __ovld read_imageui(read_only image2d_array_t image_array, sampler_t sampler, float4 coord);
14318#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14318#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1431914319
1432014320float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, int coord);
1432114321float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord);
......@@ -14325,7 +14325,7 @@ int4 __purefn __ovld read_imagei(read_only image1d_t image, sampler_t sampler, f
1432514325uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, int coord);
1432614326uint4 __purefn __ovld read_imageui(read_only image1d_t image, sampler_t sampler, float coord);
1432714327
14328#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14328#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1432914329float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
1433014330float4 __purefn __ovld read_imagef(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
1433114331
......@@ -14333,7 +14333,7 @@ int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_
1433314333int4 __purefn __ovld read_imagei(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
1433414334uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, int2 coord);
1433514335uint4 __purefn __ovld read_imageui(read_only image1d_array_t image_array, sampler_t sampler, float2 coord);
14336#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14336#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1433714337
1433814338#ifdef cl_khr_depth_images
1433914339float __purefn __ovld read_imagef(read_only image2d_depth_t image, sampler_t sampler, float2 coord);
......@@ -14358,7 +14358,7 @@ float __purefn __ovld read_imagef(read_only image2d_array_msaa_depth_t image, in
1435814358#endif //cl_khr_gl_msaa_sharing
1435914359
1436014360// OpenCL Extension v2.0 s9.18 - Mipmaps
14361#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14361#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1436214362#ifdef cl_khr_mipmap_image
1436314363
1436414364float4 __purefn __ovld read_imagef(read_only image1d_t image, sampler_t sampler, float coord, float lod);
......@@ -14410,9 +14410,9 @@ int4 __purefn __ovld read_imagei(read_only image3d_t image, sampler_t sampler, f
1441014410uint4 __purefn __ovld read_imageui(read_only image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
1441114411
1441214412#endif //cl_khr_mipmap_image
14413#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14413#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1441414414
14415#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14415#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1441614416
1441714417/**
1441814418* Sampler-less Image Access
......@@ -14447,7 +14447,7 @@ float4 __purefn __ovld read_imagef(read_only image3d_t image, int4 coord);
1444714447int4 __purefn __ovld read_imagei(read_only image3d_t image, int4 coord);
1444814448uint4 __purefn __ovld read_imageui(read_only image3d_t image, int4 coord);
1444914449
14450#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14450#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1445114451
1445214452// Image read functions returning half4 type
1445314453#ifdef cl_khr_fp16
......@@ -14457,7 +14457,7 @@ half4 __purefn __ovld read_imageh(read_only image2d_t image, sampler_t sampler,
1445714457half4 __purefn __ovld read_imageh(read_only image2d_t image, sampler_t sampler, float2 coord);
1445814458half4 __purefn __ovld read_imageh(read_only image3d_t image, sampler_t sampler, int4 coord);
1445914459half4 __purefn __ovld read_imageh(read_only image3d_t image, sampler_t sampler, float4 coord);
14460#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14460#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1446114461half4 __purefn __ovld read_imageh(read_only image1d_array_t image, sampler_t sampler, int2 coord);
1446214462half4 __purefn __ovld read_imageh(read_only image1d_array_t image, sampler_t sampler, float2 coord);
1446314463half4 __purefn __ovld read_imageh(read_only image2d_array_t image, sampler_t sampler, int4 coord);
......@@ -14471,11 +14471,11 @@ half4 __purefn __ovld read_imageh(read_only image3d_t image, int4 coord);
1447114471half4 __purefn __ovld read_imageh(read_only image1d_array_t image, int2 coord);
1447214472half4 __purefn __ovld read_imageh(read_only image2d_array_t image, int4 coord);
1447314473half4 __purefn __ovld read_imageh(read_only image1d_buffer_t image, int coord);
14474#endif // __OPENCL_C_VERSION__ >= CL_VERSION_1_2
14474#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_1_2)
1447514475#endif //cl_khr_fp16
1447614476
1447714477// Image read functions for read_write images
14478#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14478#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1447914479float4 __purefn __ovld read_imagef(read_write image1d_t image, int coord);
1448014480int4 __purefn __ovld read_imagei(read_write image1d_t image, int coord);
1448114481uint4 __purefn __ovld read_imageui(read_write image1d_t image, int coord);
......@@ -14518,7 +14518,7 @@ float __purefn __ovld read_imagef(read_write image2d_msaa_depth_t image, int2 co
1451814518float __purefn __ovld read_imagef(read_write image2d_array_msaa_depth_t image, int4 coord, int sample);
1451914519#endif //cl_khr_gl_msaa_sharing
1452014520
14521#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14521#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1452214522#ifdef cl_khr_mipmap_image
1452314523float4 __purefn __ovld read_imagef(read_write image1d_t image, sampler_t sampler, float coord, float lod);
1452414524int4 __purefn __ovld read_imagei(read_write image1d_t image, sampler_t sampler, float coord, float lod);
......@@ -14569,7 +14569,7 @@ int4 __purefn __ovld read_imagei(read_write image3d_t image, sampler_t sampler,
1456914569uint4 __purefn __ovld read_imageui(read_write image3d_t image, sampler_t sampler, float4 coord, float4 gradientX, float4 gradientY);
1457014570
1457114571#endif //cl_khr_mipmap_image
14572#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14572#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1457314573
1457414574// Image read functions returning half4 type
1457514575#ifdef cl_khr_fp16
......@@ -14580,7 +14580,7 @@ half4 __purefn __ovld read_imageh(read_write image1d_array_t image, int2 coord);
1458014580half4 __purefn __ovld read_imageh(read_write image2d_array_t image, int4 coord);
1458114581half4 __purefn __ovld read_imageh(read_write image1d_buffer_t image, int coord);
1458214582#endif //cl_khr_fp16
14583#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14583#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1458414584
1458514585/**
1458614586 * Write color value to location specified by coordinate
......@@ -14681,7 +14681,7 @@ void __ovld write_imagef(write_only image2d_array_depth_t image, int4 coord, flo
1468114681#endif //cl_khr_depth_images
1468214682
1468314683// OpenCL Extension v2.0 s9.18 - Mipmaps
14684#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14684#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1468514685#ifdef cl_khr_mipmap_image
1468614686void __ovld write_imagef(write_only image1d_t image, int coord, int lod, float4 color);
1468714687void __ovld write_imagei(write_only image1d_t image, int coord, int lod, int4 color);
......@@ -14708,7 +14708,7 @@ void __ovld write_imagei(write_only image3d_t image, int4 coord, int lod, int4 c
1470814708void __ovld write_imageui(write_only image3d_t image, int4 coord, int lod, uint4 color);
1470914709#endif
1471014710#endif //cl_khr_mipmap_image
14711#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14711#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1471214712
1471314713// Image write functions for half4 type
1471414714#ifdef cl_khr_fp16
......@@ -14723,7 +14723,7 @@ void __ovld write_imageh(write_only image1d_buffer_t image, int coord, half4 col
1472314723#endif //cl_khr_fp16
1472414724
1472514725// Image write functions for read_write images
14726#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14726#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1472714727void __ovld write_imagef(read_write image2d_t image, int2 coord, float4 color);
1472814728void __ovld write_imagei(read_write image2d_t image, int2 coord, int4 color);
1472914729void __ovld write_imageui(read_write image2d_t image, int2 coord, uint4 color);
......@@ -14755,7 +14755,7 @@ void __ovld write_imagef(read_write image2d_depth_t image, int2 coord, float col
1475514755void __ovld write_imagef(read_write image2d_array_depth_t image, int4 coord, float color);
1475614756#endif //cl_khr_depth_images
1475714757
14758#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14758#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1475914759#ifdef cl_khr_mipmap_image
1476014760void __ovld write_imagef(read_write image1d_t image, int coord, int lod, float4 color);
1476114761void __ovld write_imagei(read_write image1d_t image, int coord, int lod, int4 color);
......@@ -14782,7 +14782,7 @@ void __ovld write_imagei(read_write image3d_t image, int4 coord, int lod, int4 c
1478214782void __ovld write_imageui(read_write image3d_t image, int4 coord, int lod, uint4 color);
1478314783#endif
1478414784#endif //cl_khr_mipmap_image
14785#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14785#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1478614786
1478714787// Image write functions for half4 type
1478814788#ifdef cl_khr_fp16
......@@ -14795,7 +14795,7 @@ void __ovld write_imageh(read_write image1d_array_t image, int2 coord, half4 col
1479514795void __ovld write_imageh(read_write image2d_array_t image, int4 coord, half4 color);
1479614796void __ovld write_imageh(read_write image1d_buffer_t image, int coord, half4 color);
1479714797#endif //cl_khr_fp16
14798#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14798#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1479914799
1480014800// Note: In OpenCL v1.0/1.1/1.2, image argument of image query builtin functions does not have
1480114801// access qualifier, which by default assume read_only access qualifier. Image query builtin
......@@ -14843,7 +14843,7 @@ int __ovld __cnfn get_image_width(write_only image2d_array_msaa_t image);
1484314843int __ovld __cnfn get_image_width(write_only image2d_array_msaa_depth_t image);
1484414844#endif //cl_khr_gl_msaa_sharing
1484514845
14846#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14846#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1484714847int __ovld __cnfn get_image_width(read_write image1d_t image);
1484814848int __ovld __cnfn get_image_width(read_write image1d_buffer_t image);
1484914849int __ovld __cnfn get_image_width(read_write image2d_t image);
......@@ -14860,7 +14860,7 @@ int __ovld __cnfn get_image_width(read_write image2d_msaa_depth_t image);
1486014860int __ovld __cnfn get_image_width(read_write image2d_array_msaa_t image);
1486114861int __ovld __cnfn get_image_width(read_write image2d_array_msaa_depth_t image);
1486214862#endif //cl_khr_gl_msaa_sharing
14863#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14863#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1486414864
1486514865/**
1486614866 * Return the image height in pixels.
......@@ -14895,7 +14895,7 @@ int __ovld __cnfn get_image_height(write_only image2d_array_msaa_t image);
1489514895int __ovld __cnfn get_image_height(write_only image2d_array_msaa_depth_t image);
1489614896#endif //cl_khr_gl_msaa_sharing
1489714897
14898#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14898#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1489914899int __ovld __cnfn get_image_height(read_write image2d_t image);
1490014900int __ovld __cnfn get_image_height(read_write image3d_t image);
1490114901int __ovld __cnfn get_image_height(read_write image2d_array_t image);
......@@ -14909,7 +14909,7 @@ int __ovld __cnfn get_image_height(read_write image2d_msaa_depth_t image);
1490914909int __ovld __cnfn get_image_height(read_write image2d_array_msaa_t image);
1491014910int __ovld __cnfn get_image_height(read_write image2d_array_msaa_depth_t image);
1491114911#endif //cl_khr_gl_msaa_sharing
14912#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14912#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1491314913
1491414914/**
1491514915 * Return the image depth in pixels.
......@@ -14920,12 +14920,12 @@ int __ovld __cnfn get_image_depth(read_only image3d_t image);
1492014920int __ovld __cnfn get_image_depth(write_only image3d_t image);
1492114921#endif
1492214922
14923#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14923#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1492414924int __ovld __cnfn get_image_depth(read_write image3d_t image);
14925#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14925#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1492614926
1492714927// OpenCL Extension v2.0 s9.18 - Mipmaps
14928#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
14928#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1492914929#ifdef cl_khr_mipmap_image
1493014930/**
1493114931 * Return the image miplevels.
......@@ -14961,7 +14961,7 @@ int __ovld get_image_num_mip_levels(read_write image2d_array_depth_t image);
1496114961int __ovld get_image_num_mip_levels(read_write image2d_depth_t image);
1496214962
1496314963#endif //cl_khr_mipmap_image
14964#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
14964#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1496514965
1496614966/**
1496714967 * Return the channel data type. Valid values are:
......@@ -15018,7 +15018,7 @@ int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_msaa_t im
1501815018int __ovld __cnfn get_image_channel_data_type(write_only image2d_array_msaa_depth_t image);
1501915019#endif //cl_khr_gl_msaa_sharing
1502015020
15021#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15021#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1502215022int __ovld __cnfn get_image_channel_data_type(read_write image1d_t image);
1502315023int __ovld __cnfn get_image_channel_data_type(read_write image1d_buffer_t image);
1502415024int __ovld __cnfn get_image_channel_data_type(read_write image2d_t image);
......@@ -15035,7 +15035,7 @@ int __ovld __cnfn get_image_channel_data_type(read_write image2d_msaa_depth_t im
1503515035int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_msaa_t image);
1503615036int __ovld __cnfn get_image_channel_data_type(read_write image2d_array_msaa_depth_t image);
1503715037#endif //cl_khr_gl_msaa_sharing
15038#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15038#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1503915039
1504015040/**
1504115041 * Return the image channel order. Valid values are:
......@@ -15090,7 +15090,7 @@ int __ovld __cnfn get_image_channel_order(write_only image2d_array_msaa_t image)
1509015090int __ovld __cnfn get_image_channel_order(write_only image2d_array_msaa_depth_t image);
1509115091#endif //cl_khr_gl_msaa_sharing
1509215092
15093#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15093#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1509415094int __ovld __cnfn get_image_channel_order(read_write image1d_t image);
1509515095int __ovld __cnfn get_image_channel_order(read_write image1d_buffer_t image);
1509615096int __ovld __cnfn get_image_channel_order(read_write image2d_t image);
......@@ -15107,7 +15107,7 @@ int __ovld __cnfn get_image_channel_order(read_write image2d_msaa_depth_t image)
1510715107int __ovld __cnfn get_image_channel_order(read_write image2d_array_msaa_t image);
1510815108int __ovld __cnfn get_image_channel_order(read_write image2d_array_msaa_depth_t image);
1510915109#endif //cl_khr_gl_msaa_sharing
15110#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15110#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1511115111
1511215112/**
1511315113 * Return the 2D image width and height as an int2
......@@ -15140,7 +15140,7 @@ int2 __ovld __cnfn get_image_dim(write_only image2d_array_msaa_t image);
1514015140int2 __ovld __cnfn get_image_dim(write_only image2d_array_msaa_depth_t image);
1514115141#endif //cl_khr_gl_msaa_sharing
1514215142
15143#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15143#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1514415144int2 __ovld __cnfn get_image_dim(read_write image2d_t image);
1514515145int2 __ovld __cnfn get_image_dim(read_write image2d_array_t image);
1514615146#ifdef cl_khr_depth_images
......@@ -15153,7 +15153,7 @@ int2 __ovld __cnfn get_image_dim(read_write image2d_msaa_depth_t image);
1515315153int2 __ovld __cnfn get_image_dim(read_write image2d_array_msaa_t image);
1515415154int2 __ovld __cnfn get_image_dim(read_write image2d_array_msaa_depth_t image);
1515515155#endif //cl_khr_gl_msaa_sharing
15156#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15156#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1515715157
1515815158/**
1515915159 * Return the 3D image width, height, and depth as an
......@@ -15165,9 +15165,9 @@ int4 __ovld __cnfn get_image_dim(read_only image3d_t image);
1516515165#ifdef cl_khr_3d_image_writes
1516615166int4 __ovld __cnfn get_image_dim(write_only image3d_t image);
1516715167#endif
15168#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15168#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1516915169int4 __ovld __cnfn get_image_dim(read_write image3d_t image);
15170#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15170#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1517115171
1517215172/**
1517315173 * Return the image array size.
......@@ -15193,7 +15193,7 @@ size_t __ovld __cnfn get_image_array_size(write_only image2d_array_msaa_t image_
1519315193size_t __ovld __cnfn get_image_array_size(write_only image2d_array_msaa_depth_t image_array);
1519415194#endif //cl_khr_gl_msaa_sharing
1519515195
15196#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15196#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1519715197size_t __ovld __cnfn get_image_array_size(read_write image1d_array_t image_array);
1519815198size_t __ovld __cnfn get_image_array_size(read_write image2d_array_t image_array);
1519915199#ifdef cl_khr_depth_images
......@@ -15203,7 +15203,7 @@ size_t __ovld __cnfn get_image_array_size(read_write image2d_array_depth_t image
1520315203size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_t image_array);
1520415204size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_depth_t image_array);
1520515205#endif //cl_khr_gl_msaa_sharing
15206#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15206#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1520715207
1520815208/**
1520915209* Return the number of samples associated with image
......@@ -15219,17 +15219,17 @@ int __ovld get_image_num_samples(write_only image2d_msaa_depth_t image);
1521915219int __ovld get_image_num_samples(write_only image2d_array_msaa_t image);
1522015220int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t image);
1522115221
15222#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15222#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1522315223int __ovld get_image_num_samples(read_write image2d_msaa_t image);
1522415224int __ovld get_image_num_samples(read_write image2d_msaa_depth_t image);
1522515225int __ovld get_image_num_samples(read_write image2d_array_msaa_t image);
1522615226int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image);
15227#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15227#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1522815228#endif
1522915229
1523015230// OpenCL v2.0 s6.13.15 - Work-group Functions
1523115231
15232#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15232#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1523315233int __ovld __conv work_group_all(int predicate);
1523415234int __ovld __conv work_group_any(int predicate);
1523515235
......@@ -15327,16 +15327,16 @@ double __ovld __conv work_group_scan_inclusive_min(double x);
1532715327double __ovld __conv work_group_scan_inclusive_max(double x);
1532815328#endif //cl_khr_fp64
1532915329
15330#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15330#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1533115331
1533215332// OpenCL v2.0 s6.13.16 - Pipe Functions
15333#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15333#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1533415334bool __ovld is_valid_reserve_id(reserve_id_t reserve_id);
15335#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15335#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1533615336
1533715337
1533815338// OpenCL v2.0 s6.13.17 - Enqueue Kernels
15339#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15339#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1534015340
1534115341ndrange_t __ovld ndrange_1D(size_t);
1534215342ndrange_t __ovld ndrange_1D(size_t, size_t);
......@@ -15365,7 +15365,7 @@ bool __ovld is_valid_event (clk_event_t event);
1536515365void __ovld capture_event_profiling_info(clk_event_t, clk_profiling_info, __global void* value);
1536615366
1536715367queue_t __ovld get_default_queue(void);
15368#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15368#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1536915369
1537015370// OpenCL Extension v2.0 s9.17 - Sub-groups
1537115371
......@@ -15374,16 +15374,16 @@ queue_t __ovld get_default_queue(void);
1537415374uint __ovld get_sub_group_size(void);
1537515375uint __ovld get_max_sub_group_size(void);
1537615376uint __ovld get_num_sub_groups(void);
15377#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15377#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1537815378uint __ovld get_enqueued_num_sub_groups(void);
15379#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15379#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1538015380uint __ovld get_sub_group_id(void);
1538115381uint __ovld get_sub_group_local_id(void);
1538215382
1538315383void __ovld __conv sub_group_barrier(cl_mem_fence_flags flags);
15384#if __OPENCL_C_VERSION__ >= CL_VERSION_2_0
15384#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1538515385void __ovld __conv sub_group_barrier(cl_mem_fence_flags flags, memory_scope scope);
15386#endif //__OPENCL_C_VERSION__ >= CL_VERSION_2_0
15386#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1538715387
1538815388int __ovld __conv sub_group_all(int predicate);
1538915389int __ovld __conv sub_group_any(int predicate);
......@@ -15573,12 +15573,12 @@ uint2 __ovld __conv intel_sub_group_block_read2( read_only image2d_t image, in
1557315573uint4 __ovld __conv intel_sub_group_block_read4( read_only image2d_t image, int2 coord );
1557415574uint8 __ovld __conv intel_sub_group_block_read8( read_only image2d_t image, int2 coord );
1557515575
15576#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15576#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1557715577uint __ovld __conv intel_sub_group_block_read(read_write image2d_t image, int2 coord);
1557815578uint2 __ovld __conv intel_sub_group_block_read2(read_write image2d_t image, int2 coord);
1557915579uint4 __ovld __conv intel_sub_group_block_read4(read_write image2d_t image, int2 coord);
1558015580uint8 __ovld __conv intel_sub_group_block_read8(read_write image2d_t image, int2 coord);
15581#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15581#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1558215582
1558315583uint __ovld __conv intel_sub_group_block_read( const __global uint* p );
1558415584uint2 __ovld __conv intel_sub_group_block_read2( const __global uint* p );
......@@ -15590,12 +15590,12 @@ void __ovld __conv intel_sub_group_block_write2(write_only image2d_t image, i
1559015590void __ovld __conv intel_sub_group_block_write4(write_only image2d_t image, int2 coord, uint4 data);
1559115591void __ovld __conv intel_sub_group_block_write8(write_only image2d_t image, int2 coord, uint8 data);
1559215592
15593#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15593#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1559415594void __ovld __conv intel_sub_group_block_write(read_write image2d_t image, int2 coord, uint data);
1559515595void __ovld __conv intel_sub_group_block_write2(read_write image2d_t image, int2 coord, uint2 data);
1559615596void __ovld __conv intel_sub_group_block_write4(read_write image2d_t image, int2 coord, uint4 data);
1559715597void __ovld __conv intel_sub_group_block_write8(read_write image2d_t image, int2 coord, uint8 data);
15598#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15598#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1559915599
1560015600void __ovld __conv intel_sub_group_block_write( __global uint* p, uint data );
1560115601void __ovld __conv intel_sub_group_block_write2( __global uint* p, uint2 data );
......@@ -15713,12 +15713,12 @@ uint2 __ovld __conv intel_sub_group_block_read_ui2( read_only image2d_t ima
1571315713uint4 __ovld __conv intel_sub_group_block_read_ui4( read_only image2d_t image, int2 byte_coord );
1571415714uint8 __ovld __conv intel_sub_group_block_read_ui8( read_only image2d_t image, int2 byte_coord );
1571515715
15716#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15716#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1571715717uint __ovld __conv intel_sub_group_block_read_ui( read_write image2d_t image, int2 byte_coord );
1571815718uint2 __ovld __conv intel_sub_group_block_read_ui2( read_write image2d_t image, int2 byte_coord );
1571915719uint4 __ovld __conv intel_sub_group_block_read_ui4( read_write image2d_t image, int2 byte_coord );
1572015720uint8 __ovld __conv intel_sub_group_block_read_ui8( read_write image2d_t image, int2 byte_coord );
15721#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15721#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1572215722
1572315723uint __ovld __conv intel_sub_group_block_read_ui( const __global uint* p );
1572415724uint2 __ovld __conv intel_sub_group_block_read_ui2( const __global uint* p );
......@@ -15730,12 +15730,12 @@ void __ovld __conv intel_sub_group_block_write_ui2( read_only image2d_t im
1573015730void __ovld __conv intel_sub_group_block_write_ui4( read_only image2d_t image, int2 byte_coord, uint4 data );
1573115731void __ovld __conv intel_sub_group_block_write_ui8( read_only image2d_t image, int2 byte_coord, uint8 data );
1573215732
15733#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15733#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1573415734void __ovld __conv intel_sub_group_block_write_ui( read_write image2d_t image, int2 byte_coord, uint data );
1573515735void __ovld __conv intel_sub_group_block_write_ui2( read_write image2d_t image, int2 byte_coord, uint2 data );
1573615736void __ovld __conv intel_sub_group_block_write_ui4( read_write image2d_t image, int2 byte_coord, uint4 data );
1573715737void __ovld __conv intel_sub_group_block_write_ui8( read_write image2d_t image, int2 byte_coord, uint8 data );
15738#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15738#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1573915739
1574015740void __ovld __conv intel_sub_group_block_write_ui( __global uint* p, uint data );
1574115741void __ovld __conv intel_sub_group_block_write_ui2( __global uint* p, uint2 data );
......@@ -15747,12 +15747,12 @@ ushort2 __ovld __conv intel_sub_group_block_read_us2( read_only image2d_t im
1574715747ushort4 __ovld __conv intel_sub_group_block_read_us4( read_only image2d_t image, int2 coord );
1574815748ushort8 __ovld __conv intel_sub_group_block_read_us8( read_only image2d_t image, int2 coord );
1574915749
15750#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15750#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1575115751ushort __ovld __conv intel_sub_group_block_read_us(read_write image2d_t image, int2 coord);
1575215752ushort2 __ovld __conv intel_sub_group_block_read_us2(read_write image2d_t image, int2 coord);
1575315753ushort4 __ovld __conv intel_sub_group_block_read_us4(read_write image2d_t image, int2 coord);
1575415754ushort8 __ovld __conv intel_sub_group_block_read_us8(read_write image2d_t image, int2 coord);
15755#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15755#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1575615756
1575715757ushort __ovld __conv intel_sub_group_block_read_us( const __global ushort* p );
1575815758ushort2 __ovld __conv intel_sub_group_block_read_us2( const __global ushort* p );
......@@ -15764,12 +15764,12 @@ void __ovld __conv intel_sub_group_block_write_us2(write_only image2d_t i
1576415764void __ovld __conv intel_sub_group_block_write_us4(write_only image2d_t image, int2 coord, ushort4 data);
1576515765void __ovld __conv intel_sub_group_block_write_us8(write_only image2d_t image, int2 coord, ushort8 data);
1576615766
15767#if (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15767#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1576815768void __ovld __conv intel_sub_group_block_write_us(read_write image2d_t image, int2 coord, ushort data);
1576915769void __ovld __conv intel_sub_group_block_write_us2(read_write image2d_t image, int2 coord, ushort2 data);
1577015770void __ovld __conv intel_sub_group_block_write_us4(read_write image2d_t image, int2 coord, ushort4 data);
1577115771void __ovld __conv intel_sub_group_block_write_us8(read_write image2d_t image, int2 coord, ushort8 data);
15772#endif // (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
15772#endif // defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0)
1577315773
1577415774void __ovld __conv intel_sub_group_block_write_us( __global ushort* p, ushort data );
1577515775void __ovld __conv intel_sub_group_block_write_us2( __global ushort* p, ushort2 data );