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

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: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/IceClFlags.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/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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 TargetInstructionSet getTargetInstructionSet() const { return TInstrSet; } 128 TargetInstructionSet getTargetInstructionSet() const { return TInstrSet; }
129 void setTargetInstructionSet(TargetInstructionSet NewValue) { 129 void setTargetInstructionSet(TargetInstructionSet NewValue) {
130 TInstrSet = NewValue; 130 TInstrSet = NewValue;
131 } 131 }
132 132
133 VerboseMask getVerbose() const { 133 VerboseMask getVerbose() const {
134 return ALLOW_DUMP ? VMask : (VerboseMask)IceV_None; 134 return ALLOW_DUMP ? VMask : (VerboseMask)IceV_None;
135 } 135 }
136 void setVerbose(VerboseMask NewValue) { VMask = NewValue; } 136 void setVerbose(VerboseMask NewValue) { VMask = NewValue; }
137 137
138 void
139 setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) {
140 RandomizeAndPoolImmediatesOption = Option;
141 }
142
143 RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const {
144 return RandomizeAndPoolImmediatesOption;
145 }
146
147 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) {
148 RandomizeAndPoolImmediatesThreshold = Threshold;
149 }
150 uint32_t getRandomizeAndPoolImmediatesThreshold() const {
151 return RandomizeAndPoolImmediatesThreshold;
152 }
153
138 // IceString accessors. 154 // IceString accessors.
139 155
140 const IceString &getDefaultFunctionPrefix() const { 156 const IceString &getDefaultFunctionPrefix() const {
141 return DefaultFunctionPrefix; 157 return DefaultFunctionPrefix;
142 } 158 }
143 void setDefaultFunctionPrefix(const IceString &NewValue) { 159 void setDefaultFunctionPrefix(const IceString &NewValue) {
144 DefaultFunctionPrefix = NewValue; 160 DefaultFunctionPrefix = NewValue;
145 } 161 }
146 162
147 const IceString &getDefaultGlobalPrefix() const { 163 const IceString &getDefaultGlobalPrefix() const {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 TargetInstructionSet TInstrSet; 220 TargetInstructionSet TInstrSet;
205 VerboseMask VMask; 221 VerboseMask VMask;
206 222
207 IceString DefaultFunctionPrefix; 223 IceString DefaultFunctionPrefix;
208 IceString DefaultGlobalPrefix; 224 IceString DefaultGlobalPrefix;
209 IceString TestPrefix; 225 IceString TestPrefix;
210 IceString TimingFocusOn; 226 IceString TimingFocusOn;
211 IceString TranslateOnly; 227 IceString TranslateOnly;
212 IceString VerboseFocusOn; 228 IceString VerboseFocusOn;
213 229
230 // Immediates Randomization and Pooling options
231 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption;
232 uint32_t RandomizeAndPoolImmediatesThreshold;
233
214 size_t NumTranslationThreads; // 0 means completely sequential 234 size_t NumTranslationThreads; // 0 means completely sequential
215 uint64_t RandomSeed; 235 uint64_t RandomSeed;
216 }; 236 };
217 237
218 } // end of namespace Ice 238 } // end of namespace Ice
219 239
220 #endif // SUBZERO_SRC_ICECLFLAGS_H 240 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« 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