Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 getUseSandboxing() const { return UseSandboxing; } | 106 bool getUseSandboxing() const { return UseSandboxing; } |
| 107 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; } | 107 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; } |
| 108 | 108 |
| 109 bool getUseAdvancedSwitchLowering() const { | |
| 110 return UseAdvancedSwitchLowering; | |
| 111 } | |
| 112 void setUseAdvancedSwitchLowering(bool NewValue) { | |
| 113 UseAdvancedSwitchLowering = NewValue; | |
| 114 } | |
| 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 |
| 116 int getMaxNopsPerInstruction() const { return RandomMaxNopsPerInstruction; } | 123 int getMaxNopsPerInstruction() const { return RandomMaxNopsPerInstruction; } |
| 117 void setMaxNopsPerInstruction(int NewValue) { | 124 void setMaxNopsPerInstruction(int NewValue) { |
| 118 RandomMaxNopsPerInstruction = NewValue; | 125 RandomMaxNopsPerInstruction = NewValue; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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; |
| 238 bool UseSandboxing; | 245 bool UseSandboxing; |
| 246 bool UseAdvancedSwitchLowering; | |
|
Jim Stichnoth
2015/07/15 19:17:42
Sort this alphabetically (before UseSandboxing).
ascull
2015/07/16 19:38:45
Done.
| |
| 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 |
| OLD | NEW |