Skip to content

Commit 51d8ce4

Browse files
committed
[AMDGPU] NFC: Add helper to query archVGPR
Change-Id: Ie7d10498c0b1bb2d00a54fa17fd978752a9f1d52
1 parent 0393653 commit 51d8ce4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/AMDGPU/GCNRegPressure.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ struct GCNRegPressure {
5454
}
5555
return std::max(Value[VGPR32], Value[AGPR32]);
5656
}
57+
unsigned getArchVGPRNum() const { return Value[VGPR32];}
58+
5759
unsigned getAGPRNum() const { return Value[AGPR32]; }
5860

5961
unsigned getVGPRTuplesWeight() const { return std::max(Value[VGPR_TUPLE],

0 commit comments

Comments
 (0)