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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 511 |
512 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) | 512 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) |
513 : ID(ID), Ctx(Func->getContext()), Active(false) { | 513 : ID(ID), Ctx(Func->getContext()), Active(false) { |
514 if (ALLOW_DUMP) { | 514 if (ALLOW_DUMP) { |
515 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; | 515 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; |
516 if (Active) | 516 if (Active) |
517 Ctx->pushTimer(ID); | 517 Ctx->pushTimer(ID); |
518 } | 518 } |
519 } | 519 } |
520 | 520 |
521 thread_local GlobalContext::ThreadContext *GlobalContext::TLS; | 521 ICE_ATTRIBUTE_TLS GlobalContext::ThreadContext *GlobalContext::TLS; |
522 | 522 |
523 } // end of namespace Ice | 523 } // end of namespace Ice |
OLD | NEW |