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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 getErrorStatus()->assign(EC_Translation); | 464 getErrorStatus()->assign(EC_Translation); |
465 } | 465 } |
466 TargetHeaderLowering::createLowering(this)->lower(); | 466 TargetHeaderLowering::createLowering(this)->lower(); |
467 } | 467 } |
468 } | 468 } |
469 | 469 |
470 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } | 470 void GlobalContext::lowerConstants() { DataLowering->lowerConstants(); } |
471 | 471 |
472 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } | 472 void GlobalContext::lowerJumpTables() { DataLowering->lowerJumpTables(); } |
473 | 473 |
| 474 void GlobalContext::emitTargetRODataSections() { |
| 475 DataLowering->emitTargetRODataSections(); |
| 476 } |
| 477 |
474 void GlobalContext::saveBlockInfoPtrs() { | 478 void GlobalContext::saveBlockInfoPtrs() { |
475 for (VariableDeclaration *Global : Globals) { | 479 for (VariableDeclaration *Global : Globals) { |
476 if (Cfg::isProfileGlobal(*Global)) { | 480 if (Cfg::isProfileGlobal(*Global)) { |
477 ProfileBlockInfos.push_back(Global); | 481 ProfileBlockInfos.push_back(Global); |
478 } | 482 } |
479 } | 483 } |
480 } | 484 } |
481 | 485 |
482 void GlobalContext::lowerGlobals(const std::string &SectionSuffix) { | 486 void GlobalContext::lowerGlobals(const std::string &SectionSuffix) { |
483 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); | 487 TimerMarker T(TimerStack::TT_emitGlobalInitializers, this); |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 void TimerMarker::pushCfg(const Cfg *Func) { | 1058 void TimerMarker::pushCfg(const Cfg *Func) { |
1055 Ctx = Func->getContext(); | 1059 Ctx = Func->getContext(); |
1056 Active = Func->getFocusedTiming() || getFlags().getSubzeroTimingEnabled(); | 1060 Active = Func->getFocusedTiming() || getFlags().getSubzeroTimingEnabled(); |
1057 if (Active) | 1061 if (Active) |
1058 Ctx->pushTimer(ID, StackID); | 1062 Ctx->pushTimer(ID, StackID); |
1059 } | 1063 } |
1060 | 1064 |
1061 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 1065 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
1062 | 1066 |
1063 } // end of namespace Ice | 1067 } // end of namespace Ice |
OLD | NEW |