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