Skip to content

Commit 4e77d69

Browse files
committed
move __undef___opencl_c_ together
1 parent 39d93d6 commit 4e77d69

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

clang/lib/Headers/opencl-c-base.h

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@
5353
#define __opencl_c_kernel_clock_scope_work_group 1
5454
#define __opencl_c_kernel_clock_scope_sub_group 1
5555

56-
#ifdef __undef___opencl_c_integer_dot_product_input_4x8bit
57-
#undef __opencl_c_integer_dot_product_input_4x8bit
58-
#endif
59-
#ifdef __undef___opencl_c_integer_dot_product_input_4x8bit_packed
60-
#undef __opencl_c_integer_dot_product_input_4x8bit_packed
61-
#endif
62-
6356
#endif // defined(__SPIR__) || defined(__SPIRV__)
6457
#endif // (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200)
6558

@@ -89,6 +82,8 @@
8982
#define __opencl_c_read_write_images 1
9083
#endif // defined(__SPIR__)
9184

85+
#endif // (__OPENCL_CPP_VERSION__ == 202100 || __OPENCL_C_VERSION__ == 300)
86+
9287
// Undefine any feature macros that have been explicitly disabled using
9388
// an __undef_<feature> macro.
9489
#ifdef __undef___opencl_c_work_group_collective_functions
@@ -106,8 +101,12 @@
106101
#ifdef __undef___opencl_c_read_write_images
107102
#undef __opencl_c_read_write_images
108103
#endif
109-
110-
#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
111110

112111
#if !defined(__opencl_c_generic_address_space)
113112
// Internal feature macro to provide named (global, local, private) address

0 commit comments

Comments
 (0)