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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 2565aeece78a55ad525d8b8e31dc7b9e71c77de1..7ea34be88f1f40415bdd02346193629adfd3b3a0 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -279,6 +279,18 @@ llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
/// Options for pooling and randomization of immediates.
enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
+/// Salts for Random number generator for different randomization passes.
+enum RandomizationPassesEnum {
+ RPE_BasicBlockReordering,
+ RPE_ConstantBlinding,
+ RPE_FunctionReordering,
+ RPE_GlobalVariableReordering,
+ RPE_NopInsertion,
+ RPE_PooledConstantReordering,
+ RPE_RegAllocRandomization,
+ RPE_num
+};
+
} // end of namespace Ice
#endif // SUBZERO_SRC_ICEDEFS_H
« 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