[AMDGPU] Remove use of OpenCL triple environment and replace with function attribute...
authorTony Tye <Tony.Tye@amd.com>
Fri, 23 Mar 2018 18:43:15 +0000 (18:43 +0000)
committerTony Tye <Tony.Tye@amd.com>
Fri, 23 Mar 2018 18:43:15 +0000 (18:43 +0000)
commit1a3f3a2d14946b41d176454a4f1843ef8e914a9e
tree04fcf4e9fe8f6559e380fcc4997f212fbeabe4c9
parent5f7ba9a74c5dca7e89f601ab6968c5e9ada30ade
[AMDGPU] Remove use of OpenCL triple environment and replace with function attribute for AMDGPU (CLANG)

- Remove use of the opencl and amdopencl environment member of the target triple for the AMDGPU target.
- Use a function attribute to communicate to the AMDGPU backend.

Differential Revision: https://reviews.llvm.org/D43735

llvm-svn: 328347
clang/docs/UsersManual.rst
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGenOpenCL/amdgpu-attrs.cl