[cfe-commits] [PATCH] Add frontend support for OpenCL build options

Peter Collingbourne peter at pcc.me.uk
Tue Nov 16 14:51:16 PST 2010


Hi,

This patch series adds Clang support for all build options listed
in section 5.6.3 of the OpenCL 1.1 specification, except for
-cl-denorms-are-zero and -cl-no-signed-zeros, which (as far as I can
tell) do not have a counterpart in LLVM/Clang.

Note that the patches only modify the frontend and not the driver.
This was simply because I did not require driver support (I use the
frontend directly in my OpenCL implementation, and I suspect other
implementations do not need the driver either). Is it fine to add
frontend-only support for now?

The patches build on my earlier setLangDefaults patch [1].  Please
let me know if you would like a series that does not build on this
patch.

OK to commit?

Thanks,
-- 
Peter

[1] http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20101025/035808.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Refactor-optimisation-level-code.patch
Type: text/x-diff
Size: 3312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Implement-cl-opt-disable.patch
Type: text/x-diff
Size: 2737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Implement-cl-single-precision-constant.patch
Type: text/x-diff
Size: 3139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Implement-cl-finite-math-only.patch
Type: text/x-diff
Size: 3661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Implement-cl-unsafe-math-optimizations.patch
Type: text/x-diff
Size: 3384 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Implement-cl-fast-relaxed-math.patch
Type: text/x-diff
Size: 4451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0005.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Implement-cl-mad-enable.patch
Type: text/x-diff
Size: 3553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0006.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Implement-cl-std.patch
Type: text/x-diff
Size: 1702 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101116/158595e9/attachment-0007.patch>


More information about the cfe-commits mailing list