summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-07-17 22:35:50 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-07-17 22:35:50 +0000
commite15855d9e3b7ffe828781b63ac332ec7f504875a (patch)
treef251ae1f324e9b1e6e23a11315180ef75cff7d7b /llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
parente59dd00038a378d8921f78841f1a3a0be81699ab (diff)
downloadbcm5719-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.h5
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;
OpenPOWER on IntegriCloud