diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-07-17 22:35:50 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-07-17 22:35:50 +0000 |
commit | e15855d9e3b7ffe828781b63ac332ec7f504875a (patch) | |
tree | f251ae1f324e9b1e6e23a11315180ef75cff7d7b /llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h | |
parent | e59dd00038a378d8921f78841f1a3a0be81699ab (diff) | |
download | bcm5719-llvm-e15855d9e3b7ffe828781b63ac332ec7f504875a.tar.gz bcm5719-llvm-e15855d9e3b7ffe828781b63ac332ec7f504875a.zip |
AMDGPU: Annotate features from x work item/group IDs.
This wasn't necessary before since they are always enabled
for kernels, but this is necessary if they need to be
forwarded to a callable function.
llvm-svn: 308226
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h index 05aa249584b..a9a229dfb35 100644 --- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h +++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h @@ -119,6 +119,11 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction { unsigned WorkGroupInfoSystemSGPR; unsigned PrivateSegmentWaveByteOffsetSystemSGPR; + // VGPR inputs. These are always v0, v1 and v2 for entry functions. + unsigned WorkItemIDXVGPR; + unsigned WorkItemIDYVGPR; + unsigned WorkItemIDZVGPR; + // Graphics info. unsigned PSInputAddr; unsigned PSInputEnable; |