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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 TargetHeaderLowering::createLowering(this)->lower(); | 372 TargetHeaderLowering::createLowering(this)->lower(); |
373 } | 373 } |
374 } | 374 } |
375 | 375 |
376 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } | 376 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } |
377 | 377 |
378 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } | 378 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } |
379 | 379 |
380 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { | 380 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { |
381 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); | 381 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); |
382 const bool DumpGlobalVariables = BuildDefs::dump() && Flags.getVerbose() && | 382 const bool DumpGlobalVariables = |
383 Flags.getVerboseFocusOn().empty(); | 383 BuildDefs::dump() && (Flags.getVerbose() & Cfg::defaultVerboseMask()) && |
| 384 Flags.getVerboseFocusOn().empty(); |
384 if (DumpGlobalVariables) { | 385 if (DumpGlobalVariables) { |
385 OstreamLocker L(this); | 386 OstreamLocker L(this); |
386 Ostream &Stream = getStrDump(); | 387 Ostream &Stream = getStrDump(); |
387 for (const Ice::VariableDeclaration *Global : Globals) { | 388 for (const Ice::VariableDeclaration *Global : Globals) { |
388 Global->dump(this, Stream); | 389 Global->dump(this, Stream); |
389 } | 390 } |
390 } | 391 } |
391 if (Flags.getDisableTranslation()) | 392 if (Flags.getDisableTranslation()) |
392 return; | 393 return; |
393 | 394 |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 Ctx = Func->getContext(); | 1008 Ctx = Func->getContext(); |
1008 Active = | 1009 Active = |
1009 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); | 1010 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); |
1010 if (Active) | 1011 if (Active) |
1011 Ctx->pushTimer(ID, StackID); | 1012 Ctx->pushTimer(ID, StackID); |
1012 } | 1013 } |
1013 | 1014 |
1014 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 1015 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
1015 | 1016 |
1016 } // end of namespace Ice | 1017 } // end of namespace Ice |
OLD | NEW |