Fix OpenCL C for 32bit targets without 64bit doubles

Pekka Jääskeläinen pekka.jaaskelainen at
Tue Dec 17 02:13:01 PST 2013


The attached patch ensures we do not override target's setting for
double with OpenCL C in case it is set to be the same as FloatWidth.
This can happen with 32bit targets (currently at least TCE in LLVM)
that define double as float, and thus might support only the
OpenCL EP or just do not support the fp64 extension of OpenCL.

Good to commit?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-3.4-no-forced-64bit-doubles.patch
Type: text/x-diff
Size: 1124 bytes
Desc: not available
URL: <>

More information about the llvm-commits mailing list