diff options
| author | Neil Hickey <neil.hickey@arm.com> | 2016-11-14 11:15:51 +0000 |
|---|---|---|
| committer | Neil Hickey <neil.hickey@arm.com> | 2016-11-14 11:15:51 +0000 |
| commit | f603672b5c98b958cc4114f0eeefde3a47168b63 (patch) | |
| tree | e5d0de74ec6caaed4347106333db50e3cf0bfe2a /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | 6df8f27c95a514b19476a0e6f66107575281f158 (diff) | |
Improve handling of floating point literals in OpenCL to only use double precision if the target supports fp64.
This change makes sure single-precision floating point types are used if the
cl_fp64 extension is not supported by the target.
Also removed the check to see whether the OpenCL version is >= 1.2, as this has
been incorporated into the extension setting code.
Differential Revision: https://reviews.llvm.org/D24235
llvm-svn: 286815
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
