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

Side by Side Diff: src/IceDefs.h

Issue 1300993002: Use separate random number generator for each randomization pass (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RPE_BasicBlockReordering,
281 RPE_ConstantBlinding,
282 RPE_FunctionReordering,
283 RPE_GlobalVariableReordering,
284 RPE_NopInsertion,
285 RPE_PooledConstantReordering,
286 RPE_RegAllocRandomization,
287 RPE_num
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
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | src/IceRegAlloc.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698