Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/IceGlobalContext.cpp

Issue 1275953002: Fix translator handling of basic block indices. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceDefs.h ('k') | src/IceTargetLoweringX86Base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceTargetLoweringX86Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698