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

Side by Side Diff: src/IceGlobalContext.h

Issue 649463002: Handle "Mov" which is mov, movss, movsd, and used for nacl.read.tp. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: assert no 16-bit fixups Created 6 years, 2 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 | « no previous file | src/IceInstX8632.h » ('j') | src/IceInstX8632.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===//
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 declares aspects of the compilation that persist across 10 // This file declares aspects of the compilation that persist across
11 // multiple functions. 11 // multiple functions.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H 15 #ifndef SUBZERO_SRC_ICEGLOBALCONTEXT_H
16 #define SUBZERO_SRC_ICEGLOBALCONTEXT_H 16 #define SUBZERO_SRC_ICEGLOBALCONTEXT_H
17 17
18 #include <memory> 18 #include <memory>
19 19
20 #include "llvm/Support/Allocator.h" 20 #include "llvm/Support/Allocator.h"
21 #include "llvm/Support/raw_ostream.h" 21 #include "llvm/Support/raw_ostream.h"
22 22
23 #include "IceClFlags.h"
Jim Stichnoth 2014/10/10 17:37:25 I'm curious why this is needed? (Also saw the sam
jvoung (off chromium) 2014/10/10 21:03:39 Hmm, doesn't seem to be needed for me anymore, and
23 #include "IceDefs.h" 24 #include "IceDefs.h"
24 #include "IceIntrinsics.h" 25 #include "IceIntrinsics.h"
25 #include "IceRNG.h" 26 #include "IceRNG.h"
26 #include "IceTimerTree.h" 27 #include "IceTimerTree.h"
27 #include "IceTypes.h" 28 #include "IceTypes.h"
28 29
29 namespace Ice { 30 namespace Ice {
30 31
31 class ClFlags; 32 class ClFlags;
Jim Stichnoth 2014/10/10 17:37:25 Remove this in light of the new include?
jvoung (off chromium) 2014/10/10 21:03:39 Acknowledged.
32 33
33 // This class collects rudimentary statistics during translation. 34 // This class collects rudimentary statistics during translation.
34 class CodeStats { 35 class CodeStats {
35 public: 36 public:
36 CodeStats() 37 CodeStats()
37 : InstructionsEmitted(0), RegistersSaved(0), FrameBytes(0), Spills(0), 38 : InstructionsEmitted(0), RegistersSaved(0), FrameBytes(0), Spills(0),
38 Fills(0) {} 39 Fills(0) {}
39 void reset() { *this = CodeStats(); } 40 void reset() { *this = CodeStats(); }
40 void updateEmitted(uint32_t InstCount) { InstructionsEmitted += InstCount; } 41 void updateEmitted(uint32_t InstCount) { InstructionsEmitted += InstCount; }
41 void updateRegistersSaved(uint32_t Num) { RegistersSaved += Num; } 42 void updateRegistersSaved(uint32_t Num) { RegistersSaved += Num; }
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 217
217 private: 218 private:
218 TimerIdT ID; 219 TimerIdT ID;
219 GlobalContext *const Ctx; 220 GlobalContext *const Ctx;
220 const bool Active; 221 const bool Active;
221 }; 222 };
222 223
223 } // end of namespace Ice 224 } // end of namespace Ice
224 225
225 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H 226 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H
OLDNEW
« no previous file with comments | « no previous file | src/IceInstX8632.h » ('j') | src/IceInstX8632.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698