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

Side by Side Diff: src/IceDefs.h

Issue 620373004: Subzero: Add a few performance measurement tools. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Improve the use of containers 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 | « src/IceConverter.cpp ('k') | src/IceGlobalContext.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/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- 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 various useful types and classes that have 10 // This file declares various useful types and classes that have
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // SizeT is for holding small-ish limits like number of source 63 // SizeT is for holding small-ish limits like number of source
64 // operands in an instruction. It is used instead of size_t (which 64 // operands in an instruction. It is used instead of size_t (which
65 // may be 64-bits wide) when we want to save space. 65 // may be 64-bits wide) when we want to save space.
66 typedef uint32_t SizeT; 66 typedef uint32_t SizeT;
67 67
68 // InstNumberT is for holding an instruction number. Instruction 68 // InstNumberT is for holding an instruction number. Instruction
69 // numbers are used for representing Variable live ranges. 69 // numbers are used for representing Variable live ranges.
70 typedef int32_t InstNumberT; 70 typedef int32_t InstNumberT;
71 71
72 typedef uint32_t TimerStackIdT;
72 typedef uint32_t TimerIdT; 73 typedef uint32_t TimerIdT;
73 74
74 enum LivenessMode { 75 enum LivenessMode {
75 // Basic version of live-range-end calculation. Marks the last uses 76 // Basic version of live-range-end calculation. Marks the last uses
76 // of variables based on dataflow analysis. Records the set of 77 // of variables based on dataflow analysis. Records the set of
77 // live-in and live-out variables for each block. Identifies and 78 // live-in and live-out variables for each block. Identifies and
78 // deletes dead instructions (primarily stores). 79 // deletes dead instructions (primarily stores).
79 Liveness_Basic, 80 Liveness_Basic,
80 81
81 // In addition to Liveness_Basic, also calculate the complete 82 // In addition to Liveness_Basic, also calculate the complete
(...skipping 18 matching lines...) Expand all
100 IceV_All = ~IceV_None, 101 IceV_All = ~IceV_None,
101 IceV_Most = IceV_All & ~IceV_LinearScan 102 IceV_Most = IceV_All & ~IceV_LinearScan
102 }; 103 };
103 typedef uint32_t VerboseMask; 104 typedef uint32_t VerboseMask;
104 105
105 typedef llvm::raw_ostream Ostream; 106 typedef llvm::raw_ostream Ostream;
106 107
107 } // end of namespace Ice 108 } // end of namespace Ice
108 109
109 #endif // SUBZERO_SRC_ICEDEFS_H 110 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698