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

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: rebase to master 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/IceCfgNode.cpp ('k') | src/IceELFObjectWriter.cpp » ('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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 return llvm::make_range(Container.rbegin(), Container.rend()); 272 return llvm::make_range(Container.rbegin(), Container.rend());
273 } 273 }
274 template <typename T> 274 template <typename T>
275 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 275 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
276 return llvm::make_range(Container.rbegin(), Container.rend()); 276 return llvm::make_range(Container.rbegin(), Container.rend());
277 } 277 }
278 278
279 /// Options for pooling and randomization of immediates. 279 /// Options for pooling and randomization of immediates.
280 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; 280 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
281 281
282 /// Salts for Random number generator for different randomization passes.
283 enum RandomizationPassesEnum {
284 RPE_BasicBlockReordering,
285 RPE_ConstantBlinding,
286 RPE_FunctionReordering,
287 RPE_GlobalVariableReordering,
288 RPE_NopInsertion,
289 RPE_PooledConstantReordering,
290 RPE_RegAllocRandomization,
291 RPE_num
292 };
293
282 } // end of namespace Ice 294 } // end of namespace Ice
283 295
284 #endif // SUBZERO_SRC_ICEDEFS_H 296 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698