[PATCH] D43736: [AMDGPU] Remove use of OpenCL triple environment and replace with function attribute for AMDGPU

Tony Tye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 24 20:06:33 PST 2018


t-tye created this revision.
t-tye added reviewers: arsenm, kzhuravl, yaxunl.
Herald added subscribers: Anastasia, tpr, dstuttard, nhaehnle, wdng.

- 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.


https://reviews.llvm.org/D43736

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43736.135806.patch
Type: text/x-patch
Size: 14359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180225/ee843b6b/attachment.bin>


More information about the llvm-commits mailing list