[clang] 5952664 - [OpenCL] Add CLK_UNORM_INT_101010_2 channel type
Sven van Haastregt via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 1 08:22:27 PDT 2023
Author: Sven van Haastregt
Date: 2023-06-01T16:21:54+01:00
New Revision: 595266456a3067f522081d6d8069df2a98adfa16
URL: https://github.com/llvm/llvm-project/commit/595266456a3067f522081d6d8069df2a98adfa16
DIFF: https://github.com/llvm/llvm-project/commit/595266456a3067f522081d6d8069df2a98adfa16.diff
LOG: [OpenCL] Add CLK_UNORM_INT_101010_2 channel type
This new channel data type was added in OpenCL C 3.0.
Added:
Modified:
clang/lib/Headers/opencl-c-base.h
Removed:
################################################################################
diff --git a/clang/lib/Headers/opencl-c-base.h b/clang/lib/Headers/opencl-c-base.h
index fad2f9c0272bf..af3deae892c7c 100644
--- a/clang/lib/Headers/opencl-c-base.h
+++ b/clang/lib/Headers/opencl-c-base.h
@@ -474,6 +474,9 @@ typedef enum memory_order
#define CLK_HALF_FLOAT 0x10DD
#define CLK_FLOAT 0x10DE
#define CLK_UNORM_INT24 0x10DF
+#if __OPENCL_C_VERSION__ >= CL_VERSION_3_0
+#define CLK_UNORM_INT_101010_2 0x10E0
+#endif // __OPENCL_C_VERSION__ >= CL_VERSION_3_0
// Channel order, numbering must be aligned with cl_channel_order in cl.h
//
More information about the cfe-commits
mailing list