| OLD | NEW |
| 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// | 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file declares aspects of the compilation that persist across | 10 // This file declares aspects of the compilation that persist across |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 getStatsCumulative()->updateSpills(); | 202 getStatsCumulative()->updateSpills(); |
| 203 } | 203 } |
| 204 void statsUpdateFills() { | 204 void statsUpdateFills() { |
| 205 if (!ALLOW_DUMP || !getFlags().DumpStats) | 205 if (!ALLOW_DUMP || !getFlags().DumpStats) |
| 206 return; | 206 return; |
| 207 ICE_TLS_GET_FIELD(TLS)->StatsFunction.updateFills(); | 207 ICE_TLS_GET_FIELD(TLS)->StatsFunction.updateFills(); |
| 208 getStatsCumulative()->updateFills(); | 208 getStatsCumulative()->updateFills(); |
| 209 } | 209 } |
| 210 | 210 |
| 211 // These are predefined TimerStackIdT values. | 211 // These are predefined TimerStackIdT values. |
| 212 enum TimerStackKind { | 212 enum TimerStackKind { TSK_Default = 0, TSK_Funcs, TSK_Num }; |
| 213 TSK_Default = 0, | |
| 214 TSK_Funcs, | |
| 215 TSK_Num | |
| 216 }; | |
| 217 | 213 |
| 218 TimerStackIdT newTimerStackID(const IceString &Name); | 214 TimerStackIdT newTimerStackID(const IceString &Name); |
| 219 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name); | 215 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name); |
| 220 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); | 216 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); |
| 221 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); | 217 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); |
| 222 void resetTimer(TimerStackIdT StackID); | 218 void resetTimer(TimerStackIdT StackID); |
| 223 void setTimerName(TimerStackIdT StackID, const IceString &NewName); | 219 void setTimerName(TimerStackIdT StackID, const IceString &NewName); |
| 224 void dumpTimers(TimerStackIdT StackID = TSK_Default, | 220 void dumpTimers(TimerStackIdT StackID = TSK_Default, |
| 225 bool DumpCumulative = true); | 221 bool DumpCumulative = true); |
| 226 | 222 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } | 390 explicit OstreamLocker(GlobalContext *Ctx) : Ctx(Ctx) { Ctx->lockStr(); } |
| 395 ~OstreamLocker() { Ctx->unlockStr(); } | 391 ~OstreamLocker() { Ctx->unlockStr(); } |
| 396 | 392 |
| 397 private: | 393 private: |
| 398 GlobalContext *const Ctx; | 394 GlobalContext *const Ctx; |
| 399 }; | 395 }; |
| 400 | 396 |
| 401 } // end of namespace Ice | 397 } // end of namespace Ice |
| 402 | 398 |
| 403 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 399 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |