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

Side by Side Diff: src/IceClFlags.h

Issue 1234803007: Introduction of improved switch lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Safer check for 0 size type 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 | « src/IceCfgNode.cpp ('k') | 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 /// \file 10 /// \file
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool getSubzeroTimingEnabled() const { return SubzeroTimingEnabled; } 96 bool getSubzeroTimingEnabled() const { return SubzeroTimingEnabled; }
97 void setSubzeroTimingEnabled(bool NewValue) { 97 void setSubzeroTimingEnabled(bool NewValue) {
98 SubzeroTimingEnabled = NewValue; 98 SubzeroTimingEnabled = NewValue;
99 } 99 }
100 100
101 bool getTimeEachFunction() const { 101 bool getTimeEachFunction() const {
102 return BuildDefs::dump() && TimeEachFunction; 102 return BuildDefs::dump() && TimeEachFunction;
103 } 103 }
104 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; } 104 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; }
105 105
106 bool getUseAdvancedSwitchLowering() const {
107 return UseAdvancedSwitchLowering;
108 }
109 void setUseAdvancedSwitchLowering(bool NewValue) {
110 UseAdvancedSwitchLowering = NewValue;
111 }
112
106 bool getUseSandboxing() const { return UseSandboxing; } 113 bool getUseSandboxing() const { return UseSandboxing; }
107 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; } 114 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; }
108 115
109 // Enum and integer accessors. 116 // Enum and integer accessors.
110 OptLevel getOptLevel() const { return Opt; } 117 OptLevel getOptLevel() const { return Opt; }
111 void setOptLevel(OptLevel NewValue) { Opt = NewValue; } 118 void setOptLevel(OptLevel NewValue) { Opt = NewValue; }
112 119
113 FileType getOutFileType() const { return OutFileType; } 120 FileType getOutFileType() const { return OutFileType; }
114 void setOutFileType(FileType NewValue) { OutFileType = NewValue; } 121 void setOutFileType(FileType NewValue) { OutFileType = NewValue; }
115 122
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 bool GenerateUnitTestMessages; 235 bool GenerateUnitTestMessages;
229 bool PhiEdgeSplit; 236 bool PhiEdgeSplit;
230 bool RandomNopInsertion; 237 bool RandomNopInsertion;
231 bool RandomRegAlloc; 238 bool RandomRegAlloc;
232 bool ReorderFunctions; 239 bool ReorderFunctions;
233 bool ReorderGlobalVariables; 240 bool ReorderGlobalVariables;
234 bool ReorderPooledConstants; 241 bool ReorderPooledConstants;
235 bool SkipUnimplemented; 242 bool SkipUnimplemented;
236 bool SubzeroTimingEnabled; 243 bool SubzeroTimingEnabled;
237 bool TimeEachFunction; 244 bool TimeEachFunction;
245 bool UseAdvancedSwitchLowering;
238 bool UseSandboxing; 246 bool UseSandboxing;
239 247
240 OptLevel Opt; 248 OptLevel Opt;
241 FileType OutFileType; 249 FileType OutFileType;
242 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; 250 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption;
243 uint32_t RandomizeAndPoolImmediatesThreshold; 251 uint32_t RandomizeAndPoolImmediatesThreshold;
244 int RandomMaxNopsPerInstruction; 252 int RandomMaxNopsPerInstruction;
245 int RandomNopProbabilityAsPercentage; 253 int RandomNopProbabilityAsPercentage;
246 uint32_t ReorderFunctionsWindowSize; 254 uint32_t ReorderFunctionsWindowSize;
247 TargetArch TArch; 255 TargetArch TArch;
248 TargetInstructionSet TInstrSet; 256 TargetInstructionSet TInstrSet;
249 VerboseMask VMask; 257 VerboseMask VMask;
250 258
251 IceString DefaultFunctionPrefix; 259 IceString DefaultFunctionPrefix;
252 IceString DefaultGlobalPrefix; 260 IceString DefaultGlobalPrefix;
253 IceString TestPrefix; 261 IceString TestPrefix;
254 IceString TimingFocusOn; 262 IceString TimingFocusOn;
255 IceString TranslateOnly; 263 IceString TranslateOnly;
256 IceString VerboseFocusOn; 264 IceString VerboseFocusOn;
257 265
258 size_t NumTranslationThreads; // 0 means completely sequential 266 size_t NumTranslationThreads; // 0 means completely sequential
259 uint64_t RandomSeed; 267 uint64_t RandomSeed;
260 }; 268 };
261 269
262 } // end of namespace Ice 270 } // end of namespace Ice
263 271
264 #endif // SUBZERO_SRC_ICECLFLAGS_H 272 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698