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

Side by Side Diff: src/IceDefs.h

Issue 1253833002: Subzero: Cleanly implement register allocation after phi lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Improve translation-time performance Created 5 years, 4 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/IceClFlags.cpp ('k') | src/IceLiveness.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 declarations ------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declarations ------*- 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 /// \file 10 /// \file
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 /// deletes dead instructions (primarily stores). 190 /// deletes dead instructions (primarily stores).
191 Liveness_Basic, 191 Liveness_Basic,
192 192
193 /// In addition to Liveness_Basic, also calculate the complete 193 /// In addition to Liveness_Basic, also calculate the complete
194 /// live range for each variable in a form suitable for interference 194 /// live range for each variable in a form suitable for interference
195 /// calculation and register allocation. 195 /// calculation and register allocation.
196 Liveness_Intervals 196 Liveness_Intervals
197 }; 197 };
198 198
199 enum RegAllocKind { 199 enum RegAllocKind {
200 RAK_Unknown,
200 RAK_Global, /// full, global register allocation 201 RAK_Global, /// full, global register allocation
202 RAK_Phi, /// infinite-weight Variables with active spilling/filling
201 RAK_InfOnly /// allocation only for infinite-weight Variables 203 RAK_InfOnly /// allocation only for infinite-weight Variables
202 }; 204 };
203 205
204 enum VerboseItem { 206 enum VerboseItem {
205 IceV_None = 0, 207 IceV_None = 0,
206 IceV_Instructions = 1 << 0, 208 IceV_Instructions = 1 << 0,
207 IceV_Deleted = 1 << 1, 209 IceV_Deleted = 1 << 1,
208 IceV_InstNumbers = 1 << 2, 210 IceV_InstNumbers = 1 << 2,
209 IceV_Preds = 1 << 3, 211 IceV_Preds = 1 << 3,
210 IceV_Succs = 1 << 4, 212 IceV_Succs = 1 << 4,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 268 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
267 return llvm::make_range(Container.rbegin(), Container.rend()); 269 return llvm::make_range(Container.rbegin(), Container.rend());
268 } 270 }
269 271
270 /// Options for pooling and randomization of immediates. 272 /// Options for pooling and randomization of immediates.
271 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; 273 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
272 274
273 } // end of namespace Ice 275 } // end of namespace Ice
274 276
275 #endif // SUBZERO_SRC_ICEDEFS_H 277 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceClFlags.cpp ('k') | src/IceLiveness.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698