[AMDGPU] Remove use of OpenCL triple environment and replace with function attribute...
authorTony Tye <Tony.Tye@amd.com>
Fri, 23 Mar 2018 18:45:18 +0000 (18:45 +0000)
committerTony Tye <Tony.Tye@amd.com>
Fri, 23 Mar 2018 18:45:18 +0000 (18:45 +0000)
commit7a893d4e34e7261368c58ad583dfaa600108b7e1
treefb50022d2ccd9637c6baf7cb492e03b6f0e7648b
parenta6fb536e5b5c98d3ca46fbd7ea21893f633d21d8
[AMDGPU] Remove use of OpenCL triple environment and replace with function attribute for AMDGPU

- Remove use of the opencl and amdopencl environment member of the target triple for the AMDGPU target.
- Use function attribute to communicate to the AMDGPU backend to add implicit arguments for OpenCL kernels for the AMDHSA OS.

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

llvm-svn: 328349
llvm/docs/AMDGPUUsage.rst
llvm/include/llvm/ADT/Triple.h
llvm/lib/Support/Triple.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.implicitarg.ptr.ll
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.kernarg.segment.ptr.ll
llvm/unittests/ADT/TripleTest.cpp