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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); | 190 void popTimer(TimerIdT ID, TimerStackIdT StackID = TSK_Default); |
191 void resetTimer(TimerStackIdT StackID); | 191 void resetTimer(TimerStackIdT StackID); |
192 void setTimerName(TimerStackIdT StackID, const IceString &NewName); | 192 void setTimerName(TimerStackIdT StackID, const IceString &NewName); |
193 void dumpTimers(TimerStackIdT StackID = TSK_Default, | 193 void dumpTimers(TimerStackIdT StackID = TSK_Default, |
194 bool DumpCumulative = true); | 194 bool DumpCumulative = true); |
195 | 195 |
196 private: | 196 private: |
197 Ostream *StrDump; // Stream for dumping / diagnostics | 197 Ostream *StrDump; // Stream for dumping / diagnostics |
198 Ostream *StrEmit; // Stream for code emission | 198 Ostream *StrEmit; // Stream for code emission |
199 | 199 |
200 ArenaAllocator Allocator; | 200 ArenaAllocator<> Allocator; |
201 VerboseMask VMask; | 201 VerboseMask VMask; |
202 std::unique_ptr<class ConstantPool> ConstPool; | 202 std::unique_ptr<class ConstantPool> ConstPool; |
203 Intrinsics IntrinsicsInfo; | 203 Intrinsics IntrinsicsInfo; |
204 const TargetArch Arch; | 204 const TargetArch Arch; |
205 const OptLevel Opt; | 205 const OptLevel Opt; |
206 const IceString TestPrefix; | 206 const IceString TestPrefix; |
207 const ClFlags &Flags; | 207 const ClFlags &Flags; |
208 RandomNumberGenerator RNG; | 208 RandomNumberGenerator RNG; |
209 std::unique_ptr<ELFObjectWriter> ObjectWriter; | 209 std::unique_ptr<ELFObjectWriter> ObjectWriter; |
210 CodeStats StatsFunction; | 210 CodeStats StatsFunction; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 private: | 243 private: |
244 TimerIdT ID; | 244 TimerIdT ID; |
245 GlobalContext *const Ctx; | 245 GlobalContext *const Ctx; |
246 bool Active; | 246 bool Active; |
247 }; | 247 }; |
248 | 248 |
249 } // end of namespace Ice | 249 } // end of namespace Ice |
250 | 250 |
251 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H | 251 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H |
OLD | NEW |