| 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 /// \file | 10 /// \file |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 VariableDeclaration::RelocInitializer::create( | 387 VariableDeclaration::RelocInitializer::create( |
| 388 Global, | 388 Global, |
| 389 {RelocOffset::create(this, BlockExecutionCounterOffset)})); | 389 {RelocOffset::create(this, BlockExecutionCounterOffset)})); |
| 390 } | 390 } |
| 391 } | 391 } |
| 392 } | 392 } |
| 393 | 393 |
| 394 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { | 394 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { |
| 395 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); | 395 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); |
| 396 const bool DumpGlobalVariables = | 396 const bool DumpGlobalVariables = |
| 397 BuildDefs::dump() && (Flags.getVerbose() & Cfg::defaultVerboseMask()) && | 397 BuildDefs::dump() && |
| 398 (Flags.getVerbose() & IceV_Init & Cfg::defaultVerboseMask()) && |
| 398 Flags.getVerboseFocusOn().empty(); | 399 Flags.getVerboseFocusOn().empty(); |
| 399 if (DumpGlobalVariables) { | 400 if (DumpGlobalVariables) { |
| 400 OstreamLocker L(this); | 401 OstreamLocker L(this); |
| 401 Ostream &Stream = getStrDump(); | 402 Ostream &Stream = getStrDump(); |
| 402 for (const Ice::VariableDeclaration *Global : Globals) { | 403 for (const Ice::VariableDeclaration *Global : Globals) { |
| 403 Global->dump(this, Stream); | 404 Global->dump(this, Stream); |
| 404 } | 405 } |
| 405 } | 406 } |
| 406 if (Flags.getDisableTranslation()) | 407 if (Flags.getDisableTranslation()) |
| 407 return; | 408 return; |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 Ctx = Func->getContext(); | 1033 Ctx = Func->getContext(); |
| 1033 Active = | 1034 Active = |
| 1034 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); | 1035 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); |
| 1035 if (Active) | 1036 if (Active) |
| 1036 Ctx->pushTimer(ID, StackID); | 1037 Ctx->pushTimer(ID, StackID); |
| 1037 } | 1038 } |
| 1038 | 1039 |
| 1039 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 1040 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
| 1040 | 1041 |
| 1041 } // end of namespace Ice | 1042 } // end of namespace Ice |
| OLD | NEW |