Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [OpenCL] Add predefined macros. | Yaxun Liu | 2016-04-26 | 1 | -2/+9 |
| | | | | | | | | | | | | OpenCL spec requires __OPENCL_C_VERSION__ to be defined based on -cl-std option. This patch implements that. The patch also defines __FAST_RELAXED_MATH__ based on -cl-fast-relaxed-math option. Also fixed a test using -std=c99 for OpenCL program. Limit allowed language standard of OpenCL to be OpenCL standards. Differential Revision: http://reviews.llvm.org/D19071 llvm-svn: 267590 | ||||
* | No longer allow the -std options to entirely override the -x language ↵ | Aaron Ballman | 2014-05-29 | 1 | -0/+9 |
option. This allows -x cuda -std=c++11, for instance. llvm-svn: 209824 |