Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 268 return llvm::make_range(Container.rbegin(), Container.rend()); | 268 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 269 } | 269 } |
| 270 template <typename T> | 270 template <typename T> |
| 271 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { | 271 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { |
| 272 return llvm::make_range(Container.rbegin(), Container.rend()); | 272 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 273 } | 273 } |
| 274 | 274 |
| 275 /// Options for pooling and randomization of immediates. | 275 /// Options for pooling and randomization of immediates. |
| 276 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; | 276 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; |
| 277 | 277 |
| 278 /// Salts for Random number generator for different randomization passes. | |
| 279 enum RandomizationPassesEnum { | |
| 280 RS_BasicBlockReordering, | |
|
Jim Stichnoth
2015/08/19 19:03:04
Usually the enum value prefix is directly derived
qining
2015/08/19 23:25:48
Done.
| |
| 281 RS_ConstantBlinding, | |
| 282 RS_FunctionReordering, | |
| 283 RS_GlobalVariableReordering, | |
| 284 RS_NopInsertion, | |
| 285 RS_PooledConstantReordering, | |
| 286 RS_RegAllocRandomization, | |
| 287 RS_END = 16 | |
|
Jim Stichnoth
2015/08/19 19:03:04
Instead, use
RPE_num
The _num name is used in l
qining
2015/08/19 23:25:48
Done.
| |
| 288 }; | |
| 289 | |
| 278 } // end of namespace Ice | 290 } // end of namespace Ice |
| 279 | 291 |
| 280 #endif // SUBZERO_SRC_ICEDEFS_H | 292 #endif // SUBZERO_SRC_ICEDEFS_H |
| OLD | NEW |