| 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 13 matching lines...) Expand all Loading... |
| 24 #include "IceTargetLowering.h" | 24 #include "IceTargetLowering.h" |
| 25 #include "IceTimerTree.h" | 25 #include "IceTimerTree.h" |
| 26 #include "IceTypes.h" | 26 #include "IceTypes.h" |
| 27 | 27 |
| 28 #pragma clang diagnostic push | 28 #pragma clang diagnostic push |
| 29 #pragma clang diagnostic ignored "-Wunused-parameter" | 29 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 30 #include "llvm/Support/Timer.h" | 30 #include "llvm/Support/Timer.h" |
| 31 #pragma clang diagnostic pop | 31 #pragma clang diagnostic pop |
| 32 | 32 |
| 33 #include <algorithm> // max() | 33 #include <algorithm> // max() |
| 34 #include <cctype> // isdigit(), isupper() | 34 #include <cctype> // isdigit(), isupper() |
| 35 #include <locale> // locale | 35 #include <locale> // locale |
| 36 #include <unordered_map> | 36 #include <unordered_map> |
| 37 | 37 |
| 38 namespace std { | 38 namespace std { |
| 39 template <> struct hash<Ice::RelocatableTuple> { | 39 template <> struct hash<Ice::RelocatableTuple> { |
| 40 size_t operator()(const Ice::RelocatableTuple &Key) const { | 40 size_t operator()(const Ice::RelocatableTuple &Key) const { |
| 41 return hash<Ice::IceString>()(Key.Name) + | 41 return hash<Ice::IceString>()(Key.Name) + |
| 42 hash<Ice::RelocOffsetT>()(Key.Offset); | 42 hash<Ice::RelocOffsetT>()(Key.Offset); |
| 43 } | 43 } |
| 44 }; | 44 }; |
| 45 } // end of namespace std | 45 } // end of namespace std |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 Ctx = Func->getContext(); | 982 Ctx = Func->getContext(); |
| 983 Active = | 983 Active = |
| 984 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); | 984 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); |
| 985 if (Active) | 985 if (Active) |
| 986 Ctx->pushTimer(ID, StackID); | 986 Ctx->pushTimer(ID, StackID); |
| 987 } | 987 } |
| 988 | 988 |
| 989 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); | 989 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); |
| 990 | 990 |
| 991 } // end of namespace Ice | 991 } // end of namespace Ice |
| OLD | NEW |