Skip to content

Commit

Permalink
[AMDGPU] NFC: Add helper to query archVGPR
Browse files Browse the repository at this point in the history
Change-Id: Ie7d10498c0b1bb2d00a54fa17fd978752a9f1d52
  • Loading branch information
jrbyrnes committed Aug 9, 2024
1 parent 0393653 commit 51d8ce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/AMDGPU/GCNRegPressure.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ struct GCNRegPressure {
}
return std::max(Value[VGPR32], Value[AGPR32]);
}
unsigned getArchVGPRNum() const { return Value[VGPR32];}

unsigned getAGPRNum() const { return Value[AGPR32]; }

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

0 comments on commit 51d8ce4

Please sign in to comment.