| commit | 382d355359c879472eaaf49e389f848fcf69003b | [log] [tgz] |
|---|---|---|
| author | Yaxun Liu <Yaxun.Liu@amd.com> | Tue Apr 26 19:25:46 2016 +0000 |
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | Tue Apr 26 19:25:46 2016 +0000 |
| tree | bb8a96c5ca818e10446e0a83a3912265f85972c6 | |
| parent | ff788aa0ee68097da3a24dbc5597c16932297c56 [diff] |
[OpenCL] Add predefined macros. 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