| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 enum TimerStackKind { | 157 enum TimerStackKind { |
| 158 TSK_Default = 0, | 158 TSK_Default = 0, |
| 159 TSK_Funcs, | 159 TSK_Funcs, |
| 160 TSK_Num | 160 TSK_Num |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name); | 163 TimerIdT getTimerID(TimerStackIdT StackID, const IceString &Name); |
| 164 TimerStackIdT newTimerStackID(const IceString &Name); | 164 TimerStackIdT newTimerStackID(const IceString &Name); |
| 165 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); | 165 void pushTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); |
| 166 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); | 166 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); |
| 167 void resetTimer(TimerStackIdT StackID); |
| 168 void setTimerName(TimerStackIdT StackID, const IceString &NewName); |
| 167 void dumpTimers(TimerStackIdT StackID = TSK_Default, | 169 void dumpTimers(TimerStackIdT StackID = TSK_Default, |
| 168 bool DumpCumulative = true); | 170 bool DumpCumulative = true); |
| 169 | 171 |
| 170 private: | 172 private: |
| 171 Ostream *StrDump; // Stream for dumping / diagnostics | 173 Ostream *StrDump; // Stream for dumping / diagnostics |
| 172 Ostream *StrEmit; // Stream for code emission | 174 Ostream *StrEmit; // Stream for code emission |
| 173 | 175 |
| 174 llvm::BumpPtrAllocator Allocator; | 176 llvm::BumpPtrAllocator Allocator; |
| 175 VerboseMask VMask; | 177 VerboseMask VMask; |
| 176 std::unique_ptr<class ConstantPool> ConstPool; | 178 std::unique_ptr<class ConstantPool> ConstPool; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 216 |
| 215 private: | 217 private: |
| 216 TimerIdT ID; | 218 TimerIdT ID; |
| 217 GlobalContext *const Ctx; | 219 GlobalContext *const Ctx; |
| 218 const bool Active; | 220 const bool Active; |
| 219 }; | 221 }; |
| 220 | 222 |
| 221 } // end of namespace Ice | 223 } // end of namespace Ice |
| 222 | 224 |
| 223 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 225 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
| OLD | NEW |