AMDGPU: Add llvm.amdgcn.dispatch.ptr intrinsic
authorTom Stellard <thomas.stellard@amd.com>
Thu, 26 Nov 2015 00:43:29 +0000 (00:43 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 26 Nov 2015 00:43:29 +0000 (00:43 +0000)
commitaa23e0330d48ed41a552f13074e6b16e76c7c30c
tree0a3e38b9d1407785d38629a6db1b9bae394e7d97
parent20bbb64e8400539d225873457e7007b607dc74b1
AMDGPU: Add llvm.amdgcn.dispatch.ptr intrinsic

Summary:
This returns a pointer to the dispatch packet, which can be used to load
information about the kernel dispach.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D14898

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254116 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h
test/CodeGen/AMDGPU/llvm.amdgcn.dispatch.ptr.ll [new file with mode: 0644]