File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 8282#define __opencl_c_read_write_images 1
8383#endif // defined(__SPIR__)
8484
85+ #endif // (__OPENCL_CPP_VERSION__ == 202100 || __OPENCL_C_VERSION__ == 300)
86+
8587// Undefine any feature macros that have been explicitly disabled using
8688// an __undef_<feature> macro.
8789#ifdef __undef___opencl_c_work_group_collective_functions
99101#ifdef __undef___opencl_c_read_write_images
100102#undef __opencl_c_read_write_images
101103#endif
102-
103- #endif // (__OPENCL_CPP_VERSION__ == 202100 || __OPENCL_C_VERSION__ == 300)
104+ #ifdef __undef___opencl_c_integer_dot_product_input_4x8bit
105+ #undef __opencl_c_integer_dot_product_input_4x8bit
106+ #endif
107+ #ifdef __undef___opencl_c_integer_dot_product_input_4x8bit_packed
108+ #undef __opencl_c_integer_dot_product_input_4x8bit_packed
109+ #endif
104110
105111#if !defined(__opencl_c_generic_address_space)
106112// Internal feature macro to provide named (global, local, private) address
Original file line number Diff line number Diff line change 2626// RUN: %clang_cc1 -triple spir-unknown-unknown %s -E -dM -o - -x cl -cl-std=clc++1.0 \
2727// RUN: | FileCheck -match-full-lines %s --check-prefix=NO-FEATURES
2828
29+ // For OpenCL C 2.0, header-only features can be disabled using macros.
30+ // RUN: %clang_cc1 -triple spir-unknown-unknown %s -E -dM -o - -x cl -cl-std=CL2.0 -fdeclare-opencl-builtins -finclude-default-header \
31+ // RUN: -D__undef___opencl_c_integer_dot_product_input_4x8bit \
32+ // RUN: -D__undef___opencl_c_integer_dot_product_input_4x8bit_packed \
33+ // RUN: | FileCheck %s --check-prefix=NO-HEADERONLY-FEATURES-CL20
34+
2935// For OpenCL C 3.0, header-only features can be disabled using macros.
3036// RUN: %clang_cc1 -triple spir-unknown-unknown %s -E -dM -o - -x cl -cl-std=CL3.0 -fdeclare-opencl-builtins -finclude-default-header \
3137// RUN: -D__undef___opencl_c_work_group_collective_functions=1 \
6470// NO-FEATURES-NOT: #define __opencl_c_read_write_images
6571// NO-FEATURES-NOT: #define __opencl_c_subgroups
6672
73+ // NO-HEADERONLY-FEATURES-CL20-NOT: #define __opencl_c_integer_dot_product_input_4x8bit
74+ // NO-HEADERONLY-FEATURES-CL20-NOT: #define __opencl_c_integer_dot_product_input_4x8bit_packed
75+
6776// NO-HEADERONLY-FEATURES-NOT: #define __opencl_c_work_group_collective_functions
6877// NO-HEADERONLY-FEATURES-NOT: #define __opencl_c_atomic_order_seq_cst
6978// NO-HEADERONLY-FEATURES-NOT: #define __opencl_c_atomic_scope_device
You can’t perform that action at this time.
0 commit comments