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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 828873002: Subzero: Start writing out some relocation sections (text) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review fixes Created 5 years, 11 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/IceGlobalContext.h ('k') | src/IceInstX8632.cpp » ('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 // 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
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
OLDNEW
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698