Author: Sven van Haastregt Date: 2022-04-19T10:16:44+01:00 New Revision: f3ee0afc6739bf2990f9d302ff6b28dbb0429e8d
URL: https://github.com/llvm/llvm-project/commit/f3ee0afc6739bf2990f9d302ff6b28dbb0429e8d DIFF: https://github.com/llvm/llvm-project/commit/f3ee0afc6739bf2990f9d302ff6b28dbb0429e8d.diff LOG: [OpenCL] opencl-c.h: Add const to get_image_num_samples Align with the `-fdeclare-opencl-builtins` option and other get_image_* builtins which have the const attribute. Differential Revision: https://reviews.llvm.org/D122728 Added: Modified: clang/lib/Headers/opencl-c.h Removed: ################################################################################ diff --git a/clang/lib/Headers/opencl-c.h b/clang/lib/Headers/opencl-c.h index cee3c680aff2e..7ea835ae5c2de 100644 --- a/clang/lib/Headers/opencl-c.h +++ b/clang/lib/Headers/opencl-c.h @@ -16118,21 +16118,21 @@ size_t __ovld __cnfn get_image_array_size(read_write image2d_array_msaa_depth_t) * Return the number of samples associated with image */ #if defined(cl_khr_gl_msaa_sharing) -int __ovld get_image_num_samples(read_only image2d_msaa_t); -int __ovld get_image_num_samples(read_only image2d_msaa_depth_t); -int __ovld get_image_num_samples(read_only image2d_array_msaa_t); -int __ovld get_image_num_samples(read_only image2d_array_msaa_depth_t); +int __ovld __cnfn get_image_num_samples(read_only image2d_msaa_t); +int __ovld __cnfn get_image_num_samples(read_only image2d_msaa_depth_t); +int __ovld __cnfn get_image_num_samples(read_only image2d_array_msaa_t); +int __ovld __cnfn get_image_num_samples(read_only image2d_array_msaa_depth_t); -int __ovld get_image_num_samples(write_only image2d_msaa_t); -int __ovld get_image_num_samples(write_only image2d_msaa_depth_t); -int __ovld get_image_num_samples(write_only image2d_array_msaa_t); -int __ovld get_image_num_samples(write_only image2d_array_msaa_depth_t); +int __ovld __cnfn get_image_num_samples(write_only image2d_msaa_t); +int __ovld __cnfn get_image_num_samples(write_only image2d_msaa_depth_t); +int __ovld __cnfn get_image_num_samples(write_only image2d_array_msaa_t); +int __ovld __cnfn get_image_num_samples(write_only image2d_array_msaa_depth_t); #if defined(__opencl_c_read_write_images) -int __ovld get_image_num_samples(read_write image2d_msaa_t); -int __ovld get_image_num_samples(read_write image2d_msaa_depth_t); -int __ovld get_image_num_samples(read_write image2d_array_msaa_t); -int __ovld get_image_num_samples(read_write image2d_array_msaa_depth_t); +int __ovld __cnfn get_image_num_samples(read_write image2d_msaa_t); +int __ovld __cnfn get_image_num_samples(read_write image2d_msaa_depth_t); +int __ovld __cnfn get_image_num_samples(read_write image2d_array_msaa_t); +int __ovld __cnfn get_image_num_samples(read_write image2d_array_msaa_depth_t); #endif //defined(__opencl_c_read_write_images) #endif _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits