aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2024-01-23 14:17:58 +0000
committerJay Foad <jay.foad@amd.com>2024-01-23 14:24:40 +0000
commit818f13fc00bb29df98d730dca6561014db1d4e26 (patch)
treef18cc39fe5db6b24003669b4c56abf27e1cd1af4
parent10bd69a4f72a094f4e157ed3e226da426432ef74 (diff)
downloadllvm-818f13fc00bb29df98d730dca6561014db1d4e26.zip
llvm-818f13fc00bb29df98d730dca6561014db1d4e26.tar.gz
llvm-818f13fc00bb29df98d730dca6561014db1d4e26.tar.bz2
[AMDGPU] Remove getWorkGroupIDSGPR, unused since aa6fb4c45e01
-rw-r--r--llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
index dc63ae4..ecc31fb 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
+++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
@@ -1041,22 +1041,6 @@ public:
return WavesPerEU.second;
}
- /// \returns SGPR used for \p Dim's work group ID.
- Register getWorkGroupIDSGPR(unsigned Dim) const {
- switch (Dim) {
- case 0:
- assert(hasWorkGroupIDX());
- return ArgInfo.WorkGroupIDX.getRegister();
- case 1:
- assert(hasWorkGroupIDY());
- return ArgInfo.WorkGroupIDY.getRegister();
- case 2:
- assert(hasWorkGroupIDZ());
- return ArgInfo.WorkGroupIDZ.getRegister();
- }
- llvm_unreachable("unexpected dimension");
- }
-
const AMDGPUGWSResourcePseudoSourceValue *
getGWSPSV(const AMDGPUTargetMachine &TM) {
return &GWSResourcePSV;