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 82
82
#define __opencl_c_read_write_images 1
83
83
#endif // defined(__SPIR__)
84
84
85
+ #endif // (__OPENCL_CPP_VERSION__ == 202100 || __OPENCL_C_VERSION__ == 300)
86
+
85
87
// Undefine any feature macros that have been explicitly disabled using
86
88
// an __undef_<feature> macro.
87
89
#ifdef __undef___opencl_c_work_group_collective_functions
99
101
#ifdef __undef___opencl_c_read_write_images
100
102
#undef __opencl_c_read_write_images
101
103
#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
104
110
105
111
#if !defined(__opencl_c_generic_address_space)
106
112
// Internal feature macro to provide named (global, local, private) address
Original file line number Diff line number Diff line change 26
26
// RUN: %clang_cc1 -triple spir-unknown-unknown %s -E -dM -o - -x cl -cl-std=clc++1.0 \
27
27
// RUN: | FileCheck -match-full-lines %s --check-prefix=NO-FEATURES
28
28
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
+
29
35
// For OpenCL C 3.0, header-only features can be disabled using macros.
30
36
// RUN: %clang_cc1 -triple spir-unknown-unknown %s -E -dM -o - -x cl -cl-std=CL3.0 -fdeclare-opencl-builtins -finclude-default-header \
31
37
// RUN: -D__undef___opencl_c_work_group_collective_functions=1 \
64
70
// NO-FEATURES-NOT: #define __opencl_c_read_write_images
65
71
// NO-FEATURES-NOT: #define __opencl_c_subgroups
66
72
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
+
67
76
// NO-HEADERONLY-FEATURES-NOT: #define __opencl_c_work_group_collective_functions
68
77
// NO-HEADERONLY-FEATURES-NOT: #define __opencl_c_atomic_order_seq_cst
69
78
// NO-HEADERONLY-FEATURES-NOT: #define __opencl_c_atomic_scope_device
You can’t perform that action at this time.
0 commit comments