[RFC] OpenCL: allow half type as kernel argument type when cl_khr_fp16 is enabled

Currently Clang does not allow half type as kernel argument type even when cl_khr_fp16 is enabled, which does not make sense since when cl_khr_fp16 is enabled, half type is a valid type for function argument and it has platform independent size.

We have a patch to allow half type as kernel argument when cl_khr_fp16 is enabled. I am wondering if I can upstream it.

Thanks.

Sam

Hi Sam,

I would greatly appreciate if you could contribute your patch.

Is your fix specific to OpenCL C language version?

It does not depend on OpenCL version.

Sam

We have two patches related to half. One for diagnosing store to half pointer, the other for allowing half type kernel argument. I will create two reviews.

Thanks.

Sam