Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Headers/opencl-c.h
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 16,005 Lines • ▼ Show 20 Lines | |||||
int __ovld get_image_num_samples(read_write image2d_msaa_depth_t image); | int __ovld get_image_num_samples(read_write image2d_msaa_depth_t image); | ||||
int __ovld get_image_num_samples(read_write image2d_array_msaa_t image); | int __ovld get_image_num_samples(read_write image2d_array_msaa_t image); | ||||
int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image); | int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t image); | ||||
#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | ||||
#endif | #endif | ||||
// OpenCL v2.0 s6.13.15 - Work-group Functions | // OpenCL v2.0 s6.13.15 - Work-group Functions | ||||
#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #if defined(__opencl_c_work_group_collective_functions) | ||||
int __ovld __conv work_group_all(int predicate); | int __ovld __conv work_group_all(int predicate); | ||||
int __ovld __conv work_group_any(int predicate); | int __ovld __conv work_group_any(int predicate); | ||||
#ifdef cl_khr_fp16 | #ifdef cl_khr_fp16 | ||||
half __ovld __conv work_group_broadcast(half a, size_t local_id); | half __ovld __conv work_group_broadcast(half a, size_t local_id); | ||||
half __ovld __conv work_group_broadcast(half a, size_t x, size_t y); | half __ovld __conv work_group_broadcast(half a, size_t x, size_t y); | ||||
half __ovld __conv work_group_broadcast(half a, size_t x, size_t y, size_t z); | half __ovld __conv work_group_broadcast(half a, size_t x, size_t y, size_t z); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
double __ovld __conv work_group_scan_exclusive_add(double x); | double __ovld __conv work_group_scan_exclusive_add(double x); | ||||
double __ovld __conv work_group_scan_exclusive_min(double x); | double __ovld __conv work_group_scan_exclusive_min(double x); | ||||
double __ovld __conv work_group_scan_exclusive_max(double x); | double __ovld __conv work_group_scan_exclusive_max(double x); | ||||
double __ovld __conv work_group_scan_inclusive_add(double x); | double __ovld __conv work_group_scan_inclusive_add(double x); | ||||
double __ovld __conv work_group_scan_inclusive_min(double x); | double __ovld __conv work_group_scan_inclusive_min(double x); | ||||
double __ovld __conv work_group_scan_inclusive_max(double x); | double __ovld __conv work_group_scan_inclusive_max(double x); | ||||
#endif //cl_khr_fp64 | #endif //cl_khr_fp64 | ||||
#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #endif //defined(__opencl_c_work_group_collective_functions) | ||||
// OpenCL v2.0 s6.13.16 - Pipe Functions | // OpenCL v2.0 s6.13.16 - Pipe Functions | ||||
#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #if defined(__opencl_c_pipes) | ||||
bool __ovld is_valid_reserve_id(reserve_id_t reserve_id); | bool __ovld is_valid_reserve_id(reserve_id_t reserve_id); | ||||
#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #endif //defined(__opencl_c_pipes) | ||||
// OpenCL v2.0 s6.13.17 - Enqueue Kernels | // OpenCL v2.0 s6.13.17 - Enqueue Kernels | ||||
#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | ||||
ndrange_t __ovld ndrange_1D(size_t); | ndrange_t __ovld ndrange_1D(size_t); | ||||
ndrange_t __ovld ndrange_1D(size_t, size_t); | ndrange_t __ovld ndrange_1D(size_t, size_t); | ||||
ndrange_t __ovld ndrange_1D(size_t, size_t, size_t); | ndrange_t __ovld ndrange_1D(size_t, size_t, size_t); | ||||
Show All 20 Lines | |||||
void __ovld capture_event_profiling_info(clk_event_t, clk_profiling_info, __global void* value); | void __ovld capture_event_profiling_info(clk_event_t, clk_profiling_info, __global void* value); | ||||
queue_t __ovld get_default_queue(void); | queue_t __ovld get_default_queue(void); | ||||
#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | ||||
// OpenCL Extension v2.0 s9.17 - Sub-groups | // OpenCL Extension v2.0 s9.17 - Sub-groups | ||||
#if defined(cl_intel_subgroups) || defined(cl_khr_subgroups) | #if defined(cl_intel_subgroups) || defined(cl_khr_subgroups) || defined(__opencl_c_subgroups) | ||||
// Shared Sub Group Functions | // Shared Sub Group Functions | ||||
uint __ovld get_sub_group_size(void); | uint __ovld get_sub_group_size(void); | ||||
uint __ovld get_max_sub_group_size(void); | uint __ovld get_max_sub_group_size(void); | ||||
uint __ovld get_num_sub_groups(void); | uint __ovld get_num_sub_groups(void); | ||||
#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | ||||
Anastasia: I think that here guarding the OpenCL version is correct? | |||||
uint __ovld get_enqueued_num_sub_groups(void); | uint __ovld get_enqueued_num_sub_groups(void); | ||||
#endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #endif //defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | ||||
uint __ovld get_sub_group_id(void); | uint __ovld get_sub_group_id(void); | ||||
uint __ovld get_sub_group_local_id(void); | uint __ovld get_sub_group_local_id(void); | ||||
void __ovld __conv sub_group_barrier(cl_mem_fence_flags flags); | void __ovld __conv sub_group_barrier(cl_mem_fence_flags flags); | ||||
#if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | #if defined(__OPENCL_CPP_VERSION__) || (__OPENCL_C_VERSION__ >= CL_VERSION_2_0) | ||||
void __ovld __conv sub_group_barrier(cl_mem_fence_flags flags, memory_scope scope); | void __ovld __conv sub_group_barrier(cl_mem_fence_flags flags, memory_scope scope); | ||||
▲ Show 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
double __ovld __conv sub_group_scan_exclusive_add(double x); | double __ovld __conv sub_group_scan_exclusive_add(double x); | ||||
double __ovld __conv sub_group_scan_exclusive_min(double x); | double __ovld __conv sub_group_scan_exclusive_min(double x); | ||||
double __ovld __conv sub_group_scan_exclusive_max(double x); | double __ovld __conv sub_group_scan_exclusive_max(double x); | ||||
double __ovld __conv sub_group_scan_inclusive_add(double x); | double __ovld __conv sub_group_scan_inclusive_add(double x); | ||||
double __ovld __conv sub_group_scan_inclusive_min(double x); | double __ovld __conv sub_group_scan_inclusive_min(double x); | ||||
double __ovld __conv sub_group_scan_inclusive_max(double x); | double __ovld __conv sub_group_scan_inclusive_max(double x); | ||||
#endif //cl_khr_fp64 | #endif //cl_khr_fp64 | ||||
#endif //cl_khr_subgroups cl_intel_subgroups | #endif //cl_khr_subgroups cl_intel_subgroups __opencl_c_subgroups | ||||
#if defined(cl_khr_subgroup_extended_types) | #if defined(cl_khr_subgroup_extended_types) | ||||
char __ovld __conv sub_group_broadcast( char value, uint index ); | char __ovld __conv sub_group_broadcast( char value, uint index ); | ||||
char2 __ovld __conv sub_group_broadcast( char2 value, uint index ); | char2 __ovld __conv sub_group_broadcast( char2 value, uint index ); | ||||
char3 __ovld __conv sub_group_broadcast( char3 value, uint index ); | char3 __ovld __conv sub_group_broadcast( char3 value, uint index ); | ||||
char4 __ovld __conv sub_group_broadcast( char4 value, uint index ); | char4 __ovld __conv sub_group_broadcast( char4 value, uint index ); | ||||
char8 __ovld __conv sub_group_broadcast( char8 value, uint index ); | char8 __ovld __conv sub_group_broadcast( char8 value, uint index ); | ||||
char16 __ovld __conv sub_group_broadcast( char16 value, uint index ); | char16 __ovld __conv sub_group_broadcast( char16 value, uint index ); | ||||
▲ Show 20 Lines • Show All 1,907 Lines • Show Last 20 Lines |
I think that here guarding the OpenCL version is correct?