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 {
46
46
47
47
void clear () { std::fill (&Value[0 ], &Value[TOTAL_KINDS], 0 ); }
48
48
49
+ // / \returns the SGPR32 pressure
49
50
unsigned getSGPRNum () const { return Value[SGPR32]; }
51
+ // / \returns the aggregated ArchVGPR32, AccVGPR32 pressure dependent upon \p
52
+ // / UnifiedVGPRFile
50
53
unsigned getVGPRNum (bool UnifiedVGPRFile) const {
51
54
if (UnifiedVGPRFile) {
52
55
return Value[AGPR32] ? alignTo (Value[VGPR32], 4 ) + Value[AGPR32]
53
56
: Value[VGPR32] + Value[AGPR32];
54
57
}
55
58
return std::max (Value[VGPR32], Value[AGPR32]);
56
59
}
60
+ // / \returns the ArchVGPR32 pressure
61
+ unsigned getArchVGPRNum () const { return Value[VGPR32]; }
62
+ // / \returns the AccVGPR32 pressure
57
63
unsigned getAGPRNum () const { return Value[AGPR32]; }
58
64
59
65
unsigned getVGPRTuplesWeight () const { return std::max (Value[VGPR_TUPLE],
You can’t perform that action at this time.
0 commit comments