summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2015-01-30 10:51:46 +0000
committerFraser Cormack <fraser@codeplay.com>2015-01-30 10:51:46 +0000
commitcc6e894587ec5c4b995dc88d672556369bf833c7 (patch)
tree1b6856c8ef6e90af87230624adbc7c3a21a971ce /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent9469a592ba5f7fbe65c3cb62bdce6401c278ee75 (diff)
downloadbcm5719-llvm-cc6e894587ec5c4b995dc88d672556369bf833c7.tar.gz
bcm5719-llvm-cc6e894587ec5c4b995dc88d672556369bf833c7.zip
Fix OpenCL 1.2 double as an optional core feature behaviour
In OpenCL 1.2, using double no longer requires using the pragma cl_khr_fp64, instead a kernel is allowed to use double, but must first have queried clGetDeviceInfo's CL_DEVICE_DOUBLE_FP_CONFIG. Page 197, section 6.1.1 of the OpenCL 1.2 specification has a footnote 23 describing this behaviour. I've also added test cases such that the pragma must be used if targeting OpenCL 1.0 or 1.1, but is ignored in 1.2 and 2.0. Patch by Neil Henning! Reviewers: Pekka Jääskeläinen Differential Revision: http://reviews.llvm.org/D7245 llvm-svn: 227565
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud