Skip to content

Commit 738a40f

Browse files
committed
Clarify unit for reserved scratch
1 parent cf89dea commit 738a40f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,8 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
459459
unsigned NumSpilledSGPRs = 0;
460460
unsigned NumSpilledVGPRs = 0;
461461

462-
// The size of the scratch space reserved for the CWSR trap handler to spill
463-
// some of the dynamic VGPRs.
462+
// The size in bytes of the scratch space reserved for the CWSR trap handler
463+
// to spill some of the dynamic VGPRs.
464464
unsigned ScratchReservedForDynamicVGPRs = 0;
465465

466466
// Tracks information about user SGPRs that will be setup by hardware which
@@ -793,8 +793,8 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
793793
return ScratchReservedForDynamicVGPRs;
794794
}
795795

796-
void setScratchReservedForDynamicVGPRs(unsigned Size) {
797-
ScratchReservedForDynamicVGPRs = Size;
796+
void setScratchReservedForDynamicVGPRs(unsigned SizeInBytes) {
797+
ScratchReservedForDynamicVGPRs = SizeInBytes;
798798
}
799799

800800
// Add user SGPRs.

0 commit comments

Comments
 (0)