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 |
11 // multiple functions. | 11 // multiple functions. |
12 // | 12 // |
13 //===----------------------------------------------------------------------===// | 13 //===----------------------------------------------------------------------===// |
14 | 14 |
15 #include <ctype.h> // isdigit(), isupper() | 15 #include <ctype.h> // isdigit(), isupper() |
16 #include <locale> // locale | 16 #include <locale> // locale |
17 #include <unordered_map> | 17 #include <unordered_map> |
18 | 18 |
19 #include "llvm/Support/Timer.h" | 19 #include "llvm/Support/Timer.h" |
20 | 20 |
21 #include "IceCfg.h" | 21 #include "IceCfg.h" |
22 #include "IceClFlags.h" | 22 #include "IceClFlags.h" |
23 #include "IceDefs.h" | 23 #include "IceDefs.h" |
| 24 #include "IceELFObjectWriter.h" |
24 #include "IceGlobalContext.h" | 25 #include "IceGlobalContext.h" |
25 #include "IceGlobalInits.h" | 26 #include "IceGlobalInits.h" |
26 #include "IceOperand.h" | 27 #include "IceOperand.h" |
27 #include "IceTargetLowering.h" | 28 #include "IceTargetLowering.h" |
28 #include "IceTimerTree.h" | 29 #include "IceTimerTree.h" |
29 #include "IceTypes.h" | 30 #include "IceTypes.h" |
30 | 31 |
31 namespace std { | 32 namespace std { |
32 template <> struct hash<Ice::RelocatableTuple> { | 33 template <> struct hash<Ice::RelocatableTuple> { |
33 size_t operator()(const Ice::RelocatableTuple &Key) const { | 34 size_t operator()(const Ice::RelocatableTuple &Key) const { |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) | 510 TimerMarker::TimerMarker(TimerIdT ID, const Cfg *Func) |
510 : ID(ID), Ctx(Func->getContext()), Active(false) { | 511 : ID(ID), Ctx(Func->getContext()), Active(false) { |
511 if (ALLOW_DUMP) { | 512 if (ALLOW_DUMP) { |
512 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; | 513 Active = Func->getFocusedTiming() || Ctx->getFlags().SubzeroTimingEnabled; |
513 if (Active) | 514 if (Active) |
514 Ctx->pushTimer(ID); | 515 Ctx->pushTimer(ID); |
515 } | 516 } |
516 } | 517 } |
517 | 518 |
518 } // end of namespace Ice | 519 } // end of namespace Ice |
OLD | NEW |