[PATCH] D44322: [AMDGPU] Fix lowering enqueue kernel when kernel has no name

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 9 12:36:42 PST 2018


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

Since the enqueued kernels have internal linkage, their names may be dropped.
In this case, give them unique names `__amdgpu_enqueued_kernel[n]` where
n is a sequential number starting from 0.


https://reviews.llvm.org/D44322

Files:
  lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
  test/CodeGen/AMDGPU/enqueue-kernel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44322.137816.patch
Type: text/x-patch
Size: 8601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180309/708cc47d/attachment.bin>


More information about the llvm-commits mailing list