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

Unified Diff: src/IceClFlags.h

Issue 1185703004: Add constant blinding/pooling option for X8632 code translation (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: change the default sz-seed back to 1. Created 5 years, 6 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 | « no previous file | src/IceClFlags.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlags.h
diff --git a/src/IceClFlags.h b/src/IceClFlags.h
index 7df697303c5d6a5d77cae079e25f88a770743aaf..3b9b0067601d54600902de4ca5dead4be7fa563d 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -135,6 +135,22 @@ public:
}
void setVerbose(VerboseMask NewValue) { VMask = NewValue; }
+ void
+ setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) {
+ RandomizeAndPoolImmediatesOption = Option;
+ }
+
+ RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const {
+ return RandomizeAndPoolImmediatesOption;
+ }
+
+ void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) {
+ RandomizeAndPoolImmediatesThreshold = Threshold;
+ }
+ uint32_t getRandomizeAndPoolImmediatesThreshold() const {
+ return RandomizeAndPoolImmediatesThreshold;
+ }
+
// IceString accessors.
const IceString &getDefaultFunctionPrefix() const {
@@ -211,6 +227,10 @@ private:
IceString TranslateOnly;
IceString VerboseFocusOn;
+ // Immediates Randomization and Pooling options
+ RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption;
+ uint32_t RandomizeAndPoolImmediatesThreshold;
+
size_t NumTranslationThreads; // 0 means completely sequential
uint64_t RandomSeed;
};
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698