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 16 matching lines...) Expand all Loading... |
27 #include "IceTypes.h" | 27 #include "IceTypes.h" |
28 | 28 |
29 #pragma clang diagnostic push | 29 #pragma clang diagnostic push |
30 #pragma clang diagnostic ignored "-Wunused-parameter" | 30 #pragma clang diagnostic ignored "-Wunused-parameter" |
31 #include "llvm/Support/Timer.h" | 31 #include "llvm/Support/Timer.h" |
32 #pragma clang diagnostic pop | 32 #pragma clang diagnostic pop |
33 | 33 |
34 #include <algorithm> // max() | 34 #include <algorithm> // max() |
35 #include <cctype> // isdigit(), isupper() | 35 #include <cctype> // isdigit(), isupper() |
36 #include <locale> // locale | 36 #include <locale> // locale |
37 #include <unordered_map> | |
38 | 37 |
39 namespace std { | 38 namespace std { |
40 template <> struct hash<Ice::RelocatableTuple> { | 39 template <> struct hash<Ice::RelocatableTuple> { |
41 size_t operator()(const Ice::RelocatableTuple &Key) const { | 40 size_t operator()(const Ice::RelocatableTuple &Key) const { |
42 return hash<Ice::IceString>()(Key.Name) + | 41 return hash<Ice::IceString>()(Key.Name) + |
43 hash<Ice::RelocOffsetT>()(Key.Offset); | 42 hash<Ice::RelocOffsetT>()(Key.Offset); |
44 } | 43 } |
45 }; | 44 }; |
46 } // end of namespace std | 45 } // end of namespace std |
47 | 46 |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 Ctx = Func->getContext(); | 1011 Ctx = Func->getContext(); |
1013 Active = | 1012 Active = |
1014 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); | 1013 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); |
1015 if (Active) | 1014 if (Active) |
1016 Ctx->pushTimer(ID, StackID); | 1015 Ctx->pushTimer(ID, StackID); |
1017 } | 1016 } |
1018 | 1017 |
1019 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 1018 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
1020 | 1019 |
1021 } // end of namespace Ice | 1020 } // end of namespace Ice |
OLD | NEW |