]> granicus.if.org Git - llvm/commit
[AMDGPU] Emit metadata for hidden arguments for kernel enqueue
authorYaxun Liu <Yaxun.Liu@amd.com>
Mon, 30 Oct 2017 14:30:28 +0000 (14:30 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Mon, 30 Oct 2017 14:30:28 +0000 (14:30 +0000)
commita52756b2c94907e82ca13ff510f0b107753e2fde
tree8799211fdc0b2ac2b38508dcb4d312511026242d
parent4ccf677f27f96e163e8f9417b7a82f63af19df68
[AMDGPU] Emit metadata for hidden arguments for kernel enqueue

Identifies kernels which performs device side kernel enqueues and emit
metadata for the associated hidden kernel arguments. Such kernels are
marked with calls-enqueue-kernel function attribute by
AMDGPUOpenCLEnqueueKernelLowering pass and later on
hidden kernel arguments metadata HiddenDefaultQueue and
HiddenCompletionAction are emitted for them.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316907 91177308-0d34-0410-b5e6-96231b3b80d8
docs/AMDGPUUsage.rst
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp
test/CodeGen/AMDGPU/enqueue-kernel.ll
test/CodeGen/AMDGPU/hsa-metadata-enqueu-kernel.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll