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

Side by Side 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: Avoid calling randomizationOrPoolImmediate() multiple times on a same operand" 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | src/IceClFlags.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// 1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- 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 // This file declares command line flags controlling translation. 10 // This file declares command line flags controlling translation.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 size_t getNumTranslationThreads() const { return NumTranslationThreads; } 170 size_t getNumTranslationThreads() const { return NumTranslationThreads; }
171 bool isSequential() const { return NumTranslationThreads == 0; } 171 bool isSequential() const { return NumTranslationThreads == 0; }
172 void setNumTranslationThreads(size_t NewValue) { 172 void setNumTranslationThreads(size_t NewValue) {
173 NumTranslationThreads = NewValue; 173 NumTranslationThreads = NewValue;
174 } 174 }
175 175
176 uint64_t getRandomSeed() const { return RandomSeed; } 176 uint64_t getRandomSeed() const { return RandomSeed; }
177 void setRandomSeed(size_t NewValue) { RandomSeed = NewValue; } 177 void setRandomSeed(size_t NewValue) { RandomSeed = NewValue; }
178 178
179 // Immediates Randomization and Pooling options getter and setter
180 void
181 setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) {
182 RandomizeAndPoolImmediatesOption = Option;
183 }
184
185 RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const {
186 return RandomizeAndPoolImmediatesOption;
187 }
188
179 private: 189 private:
180 bool AllowErrorRecovery; 190 bool AllowErrorRecovery;
181 bool AllowUninitializedGlobals; 191 bool AllowUninitializedGlobals;
182 bool DataSections; 192 bool DataSections;
183 bool DecorateAsm; 193 bool DecorateAsm;
184 bool DisableInternal; 194 bool DisableInternal;
185 bool DisableIRGeneration; 195 bool DisableIRGeneration;
186 bool DisableTranslation; 196 bool DisableTranslation;
187 bool DumpStats; 197 bool DumpStats;
188 bool EnableBlockProfile; 198 bool EnableBlockProfile;
(...skipping 15 matching lines...) Expand all
204 TargetInstructionSet TInstrSet; 214 TargetInstructionSet TInstrSet;
205 VerboseMask VMask; 215 VerboseMask VMask;
206 216
207 IceString DefaultFunctionPrefix; 217 IceString DefaultFunctionPrefix;
208 IceString DefaultGlobalPrefix; 218 IceString DefaultGlobalPrefix;
209 IceString TestPrefix; 219 IceString TestPrefix;
210 IceString TimingFocusOn; 220 IceString TimingFocusOn;
211 IceString TranslateOnly; 221 IceString TranslateOnly;
212 IceString VerboseFocusOn; 222 IceString VerboseFocusOn;
213 223
224 // Immediates Randomization and Pooling options
225 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption;
226
214 size_t NumTranslationThreads; // 0 means completely sequential 227 size_t NumTranslationThreads; // 0 means completely sequential
215 uint64_t RandomSeed; 228 uint64_t RandomSeed;
216 }; 229 };
217 230
218 } // end of namespace Ice 231 } // end of namespace Ice
219 232
220 #endif // SUBZERO_SRC_ICECLFLAGS_H 233 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « no previous file | src/IceClFlags.cpp » ('j') | src/IceClFlags.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698