| OLD | NEW |
| 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===// | 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===// |
| 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 defines aspects of the compilation that persist across | 10 // This file defines aspects of the compilation that persist across |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 Str << "(requires '-track-memory')"; | 123 Str << "(requires '-track-memory')"; |
| 124 Str << "\n"; | 124 Str << "\n"; |
| 125 } | 125 } |
| 126 | 126 |
| 127 GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit, | 127 GlobalContext::GlobalContext(Ostream *OsDump, Ostream *OsEmit, |
| 128 ELFStreamer *ELFStr, VerboseMask Mask, | 128 ELFStreamer *ELFStr, VerboseMask Mask, |
| 129 TargetArch Arch, OptLevel Opt, | 129 TargetArch Arch, OptLevel Opt, |
| 130 IceString TestPrefix, const ClFlags &Flags) | 130 IceString TestPrefix, const ClFlags &Flags) |
| 131 : StrDump(OsDump), StrEmit(OsEmit), VMask(Mask), | 131 : StrDump(OsDump), StrEmit(OsEmit), VMask(Mask), |
| 132 ConstPool(new ConstantPool()), Arch(Arch), Opt(Opt), | 132 ConstPool(new ConstantPool()), Arch(Arch), Opt(Opt), |
| 133 TestPrefix(TestPrefix), Flags(Flags), HasEmittedFirstMethod(false), | 133 TestPrefix(TestPrefix), Flags(Flags), RNG(""), ObjectWriter() { |
| 134 RNG(""), ObjectWriter() { | |
| 135 // Pre-register built-in stack names. | 134 // Pre-register built-in stack names. |
| 136 if (ALLOW_DUMP) { | 135 if (ALLOW_DUMP) { |
| 137 newTimerStackID("Total across all functions"); | 136 newTimerStackID("Total across all functions"); |
| 138 newTimerStackID("Per-function summary"); | 137 newTimerStackID("Per-function summary"); |
| 139 } | 138 } |
| 140 if (Flags.UseELFWriter) { | 139 if (Flags.UseELFWriter) { |
| 141 ObjectWriter.reset(new ELFObjectWriter(*this, *ELFStr)); | 140 ObjectWriter.reset(new ELFObjectWriter(*this, *ELFStr)); |
| 142 } | 141 } |
| 143 } | 142 } |
| 144 | 143 |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) | 509 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) |
| 511 : ID(ID), Ctx(Func->getContext()), Active(false) { | 510 : ID(ID), Ctx(Func->getContext()), Active(false) { |
| 512 if (ALLOW_DUMP) { | 511 if (ALLOW_DUMP) { |
| 513 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; | 512 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; |
| 514 if (Active) | 513 if (Active) |
| 515 Ctx->pushTimer(ID); | 514 Ctx->pushTimer(ID); |
| 516 } | 515 } |
| 517 } | 516 } |
| 518 | 517 |
| 519 } // end of namespace Ice | 518 } // end of namespace Ice |
| OLD | NEW |