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

Side by Side Diff: src/IceClFlags.h

Issue 1206723003: Function Layout, Global Variable Layout and Pooled Constants Layout Reordering (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 VerboseMask getVerbose() const { 135 VerboseMask getVerbose() const {
136 return BuildDefs::dump() ? VMask : (VerboseMask)IceV_None; 136 return BuildDefs::dump() ? VMask : (VerboseMask)IceV_None;
137 } 137 }
138 void setVerbose(VerboseMask NewValue) { VMask = NewValue; } 138 void setVerbose(VerboseMask NewValue) { VMask = NewValue; }
139 139
140 void 140 void
141 setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) { 141 setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) {
142 RandomizeAndPoolImmediatesOption = Option; 142 RandomizeAndPoolImmediatesOption = Option;
143 } 143 }
144
145 RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const { 144 RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const {
146 return RandomizeAndPoolImmediatesOption; 145 return RandomizeAndPoolImmediatesOption;
147 } 146 }
148 147
149 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) { 148 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) {
150 RandomizeAndPoolImmediatesThreshold = Threshold; 149 RandomizeAndPoolImmediatesThreshold = Threshold;
151 } 150 }
152 uint32_t getRandomizeAndPoolImmediatesThreshold() const { 151 uint32_t getRandomizeAndPoolImmediatesThreshold() const {
153 return RandomizeAndPoolImmediatesThreshold; 152 return RandomizeAndPoolImmediatesThreshold;
154 } 153 }
155 154
155 void setShouldReorderFunctions(bool Option) { ReorderFunctions = Option; }
156 bool shouldReorderFunctions() const { return ReorderFunctions; }
157
158 void setReorderFunctionsWindowSize(uint32_t Size) {
159 ReorderFunctionsWindowSize = Size;
160 }
161 uint32_t getReorderFunctionsWindowSize() const {
162 return ReorderFunctionsWindowSize;
163 }
164
165 void setShouldReorderGlobalVariables(bool Option) {
166 ReorderGlobalVariables = Option;
167 }
168 bool shouldReorderGlobalVariables() const { return ReorderGlobalVariables; }
169
170 void setShouldReorderPooledConstants(bool Option) {
171 ReorderPooledConstants = Option;
172 }
173 bool shouldReorderPooledConstants() const { return ReorderPooledConstants; }
174
156 // IceString accessors. 175 // IceString accessors.
157 176
158 const IceString &getDefaultFunctionPrefix() const { 177 const IceString &getDefaultFunctionPrefix() const {
159 return DefaultFunctionPrefix; 178 return DefaultFunctionPrefix;
160 } 179 }
161 void setDefaultFunctionPrefix(const IceString &NewValue) { 180 void setDefaultFunctionPrefix(const IceString &NewValue) {
162 DefaultFunctionPrefix = NewValue; 181 DefaultFunctionPrefix = NewValue;
163 } 182 }
164 183
165 const IceString &getDefaultGlobalPrefix() const { 184 const IceString &getDefaultGlobalPrefix() const {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 bool DisableInternal; 221 bool DisableInternal;
203 bool DisableIRGeneration; 222 bool DisableIRGeneration;
204 bool DisableTranslation; 223 bool DisableTranslation;
205 bool DumpStats; 224 bool DumpStats;
206 bool EnableBlockProfile; 225 bool EnableBlockProfile;
207 bool FunctionSections; 226 bool FunctionSections;
208 bool GenerateUnitTestMessages; 227 bool GenerateUnitTestMessages;
209 bool PhiEdgeSplit; 228 bool PhiEdgeSplit;
210 bool RandomNopInsertion; 229 bool RandomNopInsertion;
211 bool RandomRegAlloc; 230 bool RandomRegAlloc;
231 bool ReorderFunctions;
232 bool ReorderGlobalVariables;
233 bool ReorderPooledConstants;
212 bool SkipUnimplemented; 234 bool SkipUnimplemented;
213 bool SubzeroTimingEnabled; 235 bool SubzeroTimingEnabled;
214 bool TimeEachFunction; 236 bool TimeEachFunction;
215 bool UseSandboxing; 237 bool UseSandboxing;
216 238
217 OptLevel Opt; 239 OptLevel Opt;
218 FileType OutFileType; 240 FileType OutFileType;
241 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption;
242 uint32_t RandomizeAndPoolImmediatesThreshold;
219 int RandomMaxNopsPerInstruction; 243 int RandomMaxNopsPerInstruction;
220 int RandomNopProbabilityAsPercentage; 244 int RandomNopProbabilityAsPercentage;
245 uint32_t ReorderFunctionsWindowSize;
221 TargetArch TArch; 246 TargetArch TArch;
222 TargetInstructionSet TInstrSet; 247 TargetInstructionSet TInstrSet;
223 VerboseMask VMask; 248 VerboseMask VMask;
224 249
225 IceString DefaultFunctionPrefix; 250 IceString DefaultFunctionPrefix;
226 IceString DefaultGlobalPrefix; 251 IceString DefaultGlobalPrefix;
227 IceString TestPrefix; 252 IceString TestPrefix;
228 IceString TimingFocusOn; 253 IceString TimingFocusOn;
229 IceString TranslateOnly; 254 IceString TranslateOnly;
230 IceString VerboseFocusOn; 255 IceString VerboseFocusOn;
231 256
232 // Immediates Randomization and Pooling options
233 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption;
234 uint32_t RandomizeAndPoolImmediatesThreshold;
235
236 size_t NumTranslationThreads; // 0 means completely sequential 257 size_t NumTranslationThreads; // 0 means completely sequential
237 uint64_t RandomSeed; 258 uint64_t RandomSeed;
238 }; 259 };
239 260
240 } // end of namespace Ice 261 } // end of namespace Ice
241 262
242 #endif // SUBZERO_SRC_ICECLFLAGS_H 263 #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