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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes All Subzero includes to match LLVM style guide. Created 5 years, 5 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
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 // 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 "IceGlobalContext.h"
16 #include <locale> // locale
17 #include <unordered_map>
18
19 #include "llvm/Support/Timer.h"
20 16
21 #include "IceCfg.h" 17 #include "IceCfg.h"
22 #include "IceCfgNode.h" 18 #include "IceCfgNode.h"
23 #include "IceClFlags.h" 19 #include "IceClFlags.h"
24 #include "IceDefs.h" 20 #include "IceDefs.h"
25 #include "IceELFObjectWriter.h" 21 #include "IceELFObjectWriter.h"
26 #include "IceGlobalContext.h"
27 #include "IceGlobalInits.h" 22 #include "IceGlobalInits.h"
28 #include "IceOperand.h" 23 #include "IceOperand.h"
29 #include "IceTargetLowering.h" 24 #include "IceTargetLowering.h"
30 #include "IceTimerTree.h" 25 #include "IceTimerTree.h"
31 #include "IceTypes.h" 26 #include "IceTypes.h"
27 #include "llvm/Support/Timer.h"
28
29 #include <ctype.h> // isdigit(), isupper()
30 #include <locale> // locale
31 #include <unordered_map>
32
32 33
33 namespace std { 34 namespace std {
34 template <> struct hash<Ice::RelocatableTuple> { 35 template <> struct hash<Ice::RelocatableTuple> {
35 size_t operator()(const Ice::RelocatableTuple &Key) const { 36 size_t operator()(const Ice::RelocatableTuple &Key) const {
36 return hash<Ice::IceString>()(Key.Name) + 37 return hash<Ice::IceString>()(Key.Name) +
37 hash<Ice::RelocOffsetT>()(Key.Offset); 38 hash<Ice::RelocOffsetT>()(Key.Offset);
38 } 39 }
39 }; 40 };
40 } // end of namespace std 41 } // end of namespace std
41 42
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 Ctx = Func->getContext(); 922 Ctx = Func->getContext();
922 Active = 923 Active =
923 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); 924 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled();
924 if (Active) 925 if (Active)
925 Ctx->pushTimer(ID, StackID); 926 Ctx->pushTimer(ID, StackID);
926 } 927 }
927 928
928 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 929 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
929 930
930 } // end of namespace Ice 931 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698