[PATCH] D46501: OpenCL Header: Guard all half float usage based on cl_khr_fp16 extension

2018-05-06 Thread Jerry Crunchtime via Phabricator via cfe-commits
jerryct created this revision. Herald added subscribers: cfe-commits, Anastasia, yaxunl. Hi, this patch guards all missed half float functions based on the availabiltiy of the OpenCL extension cl_khr_fp16. Best regards, Jerry Repository: rC Clang https://reviews.llvm.org/D46501 Files:

OpenCL Header: Guard all half float usage based on cl_khr_fp16 extension

2018-05-05 Thread via cfe-commits
Hi,   this patch guards all missed half float functions based on the availabiltiy of the OpenCL extension cl_khr_fp16.   Best regards,   JerryIndex: lib/Headers/opencl-c.h === --- lib/Headers/opencl-c.h (revision 331598) +++ lib/Head