[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
This commit is contained in:
Sven van Haastregt 2022-04-19 10:16:44 +01:00
parent 2ba865903d
commit f3ee0afc67
1 changed files with 12 additions and 12 deletions

View File

@ -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