@@ -31,7 +31,9 @@ class SlotIndex;
3131struct GCNRegPressure {
3232 enum RegKind { SGPR, VGPR, AGPR, TOTAL_KINDS };
3333
34- GCNRegPressure () { clear (); }
34+ GCNRegPressure () {
35+ clear ();
36+ }
3537
3638 bool empty () const { return !Value[SGPR] && !Value[VGPR] && !Value[AGPR]; }
3739
@@ -74,7 +76,9 @@ struct GCNRegPressure {
7476 DynamicVGPRBlockSize));
7577 }
7678
77- void inc (unsigned Reg, LaneBitmask PrevMask, LaneBitmask NewMask,
79+ void inc (unsigned Reg,
80+ LaneBitmask PrevMask,
81+ LaneBitmask NewMask,
7882 const MachineRegisterInfo &MRI);
7983
8084 bool higherOccupancy (const GCNSubtarget &ST, const GCNRegPressure &O,
@@ -102,7 +106,9 @@ struct GCNRegPressure {
102106 return std::equal (&Value[0 ], &Value[ValueArraySize], O.Value );
103107 }
104108
105- bool operator !=(const GCNRegPressure &O) const { return !(*this == O); }
109+ bool operator !=(const GCNRegPressure &O) const {
110+ return !(*this == O);
111+ }
106112
107113 GCNRegPressure &operator +=(const GCNRegPressure &RHS) {
108114 for (unsigned I = 0 ; I < ValueArraySize; ++I)
@@ -128,7 +134,8 @@ struct GCNRegPressure {
128134 static unsigned getRegKind (const TargetRegisterClass *RC,
129135 const SIRegisterInfo *STI);
130136
131- friend GCNRegPressure max (const GCNRegPressure &P1, const GCNRegPressure &P2);
137+ friend GCNRegPressure max (const GCNRegPressure &P1,
138+ const GCNRegPressure &P2);
132139
133140 friend Printable print (const GCNRegPressure &RP, const GCNSubtarget *ST,
134141 unsigned DynamicVGPRBlockSize);
@@ -285,7 +292,9 @@ class GCNRPTracker {
285292
286293 GCNRegPressure getPressure () const { return CurPressure; }
287294
288- decltype (LiveRegs) moveLiveRegs() { return std::move (LiveRegs); }
295+ decltype (LiveRegs) moveLiveRegs() {
296+ return std::move (LiveRegs);
297+ }
289298};
290299
291300GCNRPTracker::LiveRegSet getLiveRegs (SlotIndex SI, const LiveIntervals &LIS,
@@ -431,7 +440,7 @@ GCNRPTracker::LiveRegSet getLiveRegs(SlotIndex SI, const LiveIntervals &LIS,
431440// / Note: there is no entry in the map for instructions with empty live reg set
432441// / Complexity = O(NumVirtRegs * averageLiveRangeSegmentsPerReg * lg(R))
433442template <typename Range>
434- DenseMap<MachineInstr *, GCNRPTracker::LiveRegSet>
443+ DenseMap<MachineInstr*, GCNRPTracker::LiveRegSet>
435444getLiveRegMap (Range &&R, bool After, LiveIntervals &LIS) {
436445 std::vector<SlotIndex> Indexes;
437446 Indexes.reserve (std::distance (R.begin (), R.end ()));
0 commit comments