| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 if (!BuildDefs::dump()) { | 378 if (!BuildDefs::dump()) { |
| 379 getStrError() << "emitFileHeader for non-ELF"; | 379 getStrError() << "emitFileHeader for non-ELF"; |
| 380 getErrorStatus()->assign(EC_Translation); | 380 getErrorStatus()->assign(EC_Translation); |
| 381 } | 381 } |
| 382 TargetHeaderLowering::createLowering(this)->lower(); | 382 TargetHeaderLowering::createLowering(this)->lower(); |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 | 385 |
| 386 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } | 386 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } |
| 387 | 387 |
| 388 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } |
| 389 |
| 388 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { | 390 void GlobalContext::lowerGlobals(const IceString &SectionSuffix) { |
| 389 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); | 391 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); |
| 390 const bool DumpGlobalVariables = BuildDefs::dump() && Flags.getVerbose() && | 392 const bool DumpGlobalVariables = BuildDefs::dump() && Flags.getVerbose() && |
| 391 Flags.getVerboseFocusOn().empty(); | 393 Flags.getVerboseFocusOn().empty(); |
| 392 if (DumpGlobalVariables) { | 394 if (DumpGlobalVariables) { |
| 393 OstreamLocker L(this); | 395 OstreamLocker L(this); |
| 394 Ostream &Stream = getStrDump(); | 396 Ostream &Stream = getStrDump(); |
| 395 for (const Ice::VariableDeclaration *Global : Globals) { | 397 for (const Ice::VariableDeclaration *Global : Globals) { |
| 396 Global->dump(this, Stream); | 398 Global->dump(this, Stream); |
| 397 } | 399 } |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 Ctx = Func->getContext(); | 985 Ctx = Func->getContext(); |
| 984 Active = | 986 Active = |
| 985 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); | 987 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); |
| 986 if (Active) | 988 if (Active) |
| 987 Ctx->pushTimer(ID, StackID); | 989 Ctx->pushTimer(ID, StackID); |
| 988 } | 990 } |
| 989 | 991 |
| 990 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 992 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
| 991 | 993 |
| 992 } // end of namespace Ice | 994 } // end of namespace Ice |
| OLD | NEW |