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

Side by Side Diff: src/IceDefs.h

Issue 695563006: Subzero: Use a common RelocOffsetType / RelocOffsetT. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: format-diff Created 6 years, 1 month 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/IceGlobalInits.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // ends a variable's live range. 78 // ends a variable's live range.
79 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry; 79 typedef std::pair<SizeT, InstNumberT> LiveBeginEndMapEntry;
80 typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap; 80 typedef std::vector<LiveBeginEndMapEntry> LiveBeginEndMap;
81 typedef llvm::BitVector LivenessBV; 81 typedef llvm::BitVector LivenessBV;
82 82
83 typedef uint32_t TimerStackIdT; 83 typedef uint32_t TimerStackIdT;
84 typedef uint32_t TimerIdT; 84 typedef uint32_t TimerIdT;
85 85
86 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets. 86 // PNaCl is ILP32, so theoretically we should only need 32-bit offsets.
87 typedef int32_t RelocOffsetT; 87 typedef int32_t RelocOffsetT;
88 enum { RelocAddrSize = 4 };
88 89
89 enum LivenessMode { 90 enum LivenessMode {
90 // Basic version of live-range-end calculation. Marks the last uses 91 // Basic version of live-range-end calculation. Marks the last uses
91 // of variables based on dataflow analysis. Records the set of 92 // of variables based on dataflow analysis. Records the set of
92 // live-in and live-out variables for each block. Identifies and 93 // live-in and live-out variables for each block. Identifies and
93 // deletes dead instructions (primarily stores). 94 // deletes dead instructions (primarily stores).
94 Liveness_Basic, 95 Liveness_Basic,
95 96
96 // In addition to Liveness_Basic, also calculate the complete 97 // In addition to Liveness_Basic, also calculate the complete
97 // live range for each variable in a form suitable for interference 98 // live range for each variable in a form suitable for interference
(...skipping 17 matching lines...) Expand all
115 IceV_All = ~IceV_None, 116 IceV_All = ~IceV_None,
116 IceV_Most = IceV_All & ~IceV_LinearScan 117 IceV_Most = IceV_All & ~IceV_LinearScan
117 }; 118 };
118 typedef uint32_t VerboseMask; 119 typedef uint32_t VerboseMask;
119 120
120 typedef llvm::raw_ostream Ostream; 121 typedef llvm::raw_ostream Ostream;
121 122
122 } // end of namespace Ice 123 } // end of namespace Ice
123 124
124 #endif // SUBZERO_SRC_ICEDEFS_H 125 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceGlobalInits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698