Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions clang/include/clang/Basic/OpenCLExtensions.def
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,13 @@ OPENCL_EXTENSION(cl_amd_media_ops, true, 100)
OPENCL_EXTENSION(cl_amd_media_ops2, true, 100)

// Intel OpenCL extensions
OPENCL_EXTENSION(cl_intel_bfloat16_conversion, false, 100)
OPENCL_EXTENSION(cl_intel_subgroups, true, 120)
OPENCL_EXTENSION(cl_intel_subgroups_char, true, 120)
OPENCL_EXTENSION(cl_intel_subgroups_long, true, 120)
OPENCL_EXTENSION(cl_intel_subgroups_short, true, 120)
OPENCL_EXTENSION(cl_intel_subgroup_buffer_prefetch, false, 120)
OPENCL_EXTENSION(cl_intel_subgroup_local_block_io, false, 120)
OPENCL_EXTENSION(cl_intel_device_side_avc_motion_estimation, true, 120)

// OpenCL C 3.0 features (6.2.1. Features)
Expand Down
36 changes: 36 additions & 0 deletions clang/test/SemaOpenCL/extension-version.cl
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@
#endif
#pragma OPENCL EXTENSION cl_khr_depth_images : enable

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 100)
#ifndef cl_intel_bfloat16_conversion
#error "Missing cl_intel_bfloat16_conversion define"
#endif
#endif

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_subgroups
#error "Missing cl_intel_subgroups define"
Expand All @@ -340,6 +346,24 @@
#endif
#pragma OPENCL EXTENSION cl_intel_subgroups : enable

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_subgroups_char
#error "Missing cl_intel_subgroups_char define"
#endif
#else
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_char' - ignoring}}
#endif
#pragma OPENCL EXTENSION cl_intel_subgroups_char : enable

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_subgroups_long
#error "Missing cl_intel_subgroups_long define"
#endif
#else
// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_long' - ignoring}}
#endif
#pragma OPENCL EXTENSION cl_intel_subgroups_long : enable

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_subgroups_short
#error "Missing cl_intel_subgroups_short define"
Expand All @@ -349,6 +373,18 @@
#endif
#pragma OPENCL EXTENSION cl_intel_subgroups_short : enable

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_subgroup_buffer_prefetch
#error "Missing cl_intel_subgroup_buffer_prefetch define"
#endif
#endif

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_subgroup_local_block_io
#error "Missing cl_intel_subgroup_local_block_io define"
#endif
#endif

#if (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 120)
#ifndef cl_intel_device_side_avc_motion_estimation
#error "Missing cl_intel_device_side_avc_motion_estimation define"
Expand Down
30 changes: 0 additions & 30 deletions libclc/opencl/include/clc/opencl/async/async_work_group_copy.h

This file was deleted.

12 changes: 0 additions & 12 deletions libclc/opencl/include/clc/opencl/async/async_work_group_copy.inc

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions libclc/opencl/include/clc/opencl/async/prefetch.h

This file was deleted.

10 changes: 0 additions & 10 deletions libclc/opencl/include/clc/opencl/async/prefetch.inc

This file was deleted.

17 changes: 0 additions & 17 deletions libclc/opencl/include/clc/opencl/async/wait_group_events.h

This file was deleted.

31 changes: 0 additions & 31 deletions libclc/opencl/include/clc/opencl/atomic/atom_add.h

This file was deleted.

31 changes: 0 additions & 31 deletions libclc/opencl/include/clc/opencl/atomic/atom_and.h

This file was deleted.

46 changes: 0 additions & 46 deletions libclc/opencl/include/clc/opencl/atomic/atom_cmpxchg.h

This file was deleted.

35 changes: 0 additions & 35 deletions libclc/opencl/include/clc/opencl/atomic/atom_dec.h

This file was deleted.

18 changes: 0 additions & 18 deletions libclc/opencl/include/clc/opencl/atomic/atom_decl_int32.inc

This file was deleted.

19 changes: 0 additions & 19 deletions libclc/opencl/include/clc/opencl/atomic/atom_decl_int64.inc

This file was deleted.

Loading