File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,20 @@ struct GCNRegPressure {
4646
4747 void clear () { std::fill (&Value[0 ], &Value[TOTAL_KINDS], 0 ); }
4848
49+ // / \returns the SGPR32 pressure
4950 unsigned getSGPRNum () const { return Value[SGPR32]; }
51+ // / \returns the aggregated ArchVGPR32, AccVGPR32 pressure dependent upon \p
52+ // / UnifiedVGPRFile
5053 unsigned getVGPRNum (bool UnifiedVGPRFile) const {
5154 if (UnifiedVGPRFile) {
5255 return Value[AGPR32] ? alignTo (Value[VGPR32], 4 ) + Value[AGPR32]
5356 : Value[VGPR32] + Value[AGPR32];
5457 }
5558 return std::max (Value[VGPR32], Value[AGPR32]);
5659 }
60+ // / \returns the ArchVGPR32 pressure
61+ unsigned getArchVGPRNum () const { return Value[VGPR32]; }
62+ // / \returns the AccVGPR32 pressure
5763 unsigned getAGPRNum () const { return Value[AGPR32]; }
5864
5965 unsigned getVGPRTuplesWeight () const { return std::max (Value[VGPR_TUPLE],
You can’t perform that action at this time.
0 commit comments