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 // This file declares command line flags controlling translation. | 10 // This file declares command line flags controlling translation. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | 138 void |
| 139 setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) { | 139 setRandomizeAndPoolImmediatesOption(RandomizeAndPoolImmediatesEnum Option) { |
| 140 RandomizeAndPoolImmediatesOption = Option; | 140 RandomizeAndPoolImmediatesOption = Option; |
| 141 } | 141 } |
| 142 | |
| 143 RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const { | 142 RandomizeAndPoolImmediatesEnum getRandomizeAndPoolImmediatesOption() const { |
| 144 return RandomizeAndPoolImmediatesOption; | 143 return RandomizeAndPoolImmediatesOption; |
| 145 } | 144 } |
| 146 | 145 |
| 147 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) { | 146 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) { |
| 148 RandomizeAndPoolImmediatesThreshold = Threshold; | 147 RandomizeAndPoolImmediatesThreshold = Threshold; |
| 149 } | 148 } |
| 150 uint32_t getRandomizeAndPoolImmediatesThreshold() const { | 149 uint32_t getRandomizeAndPoolImmediatesThreshold() const { |
| 151 return RandomizeAndPoolImmediatesThreshold; | 150 return RandomizeAndPoolImmediatesThreshold; |
| 152 } | 151 } |
| 153 | 152 |
| 153 void setShouldReorderFunctions(bool Option) { ReorderFunctions = Option; } | |
| 154 bool shouldReorderFunctions() const { return ReorderFunctions; } | |
| 155 | |
| 156 void setReorderFunctionsWindowSize(uint32_t Size) { | |
| 157 ReorderFunctionsWindowSize = Size; | |
| 158 } | |
| 159 uint32_t getReorderFunctionsWindowSize() const { | |
| 160 return ReorderFunctionsWindowSize; | |
| 161 } | |
| 162 | |
| 163 void setShouldReorderGlobalVariables(bool Option) { | |
| 164 ReorderGlobalVariables = Option; | |
| 165 } | |
| 166 bool shouldReorderGlobalVariables() const { return ReorderGlobalVariables; } | |
| 167 | |
| 168 void setShouldReorderPooledConstants(bool Option) { | |
| 169 ReorderPooledConstants = Option; | |
| 170 } | |
| 171 bool shouldReorderPooledConstants() const { return ReorderPooledConstants; } | |
| 172 | |
| 154 // IceString accessors. | 173 // IceString accessors. |
| 155 | 174 |
| 156 const IceString &getDefaultFunctionPrefix() const { | 175 const IceString &getDefaultFunctionPrefix() const { |
| 157 return DefaultFunctionPrefix; | 176 return DefaultFunctionPrefix; |
| 158 } | 177 } |
| 159 void setDefaultFunctionPrefix(const IceString &NewValue) { | 178 void setDefaultFunctionPrefix(const IceString &NewValue) { |
| 160 DefaultFunctionPrefix = NewValue; | 179 DefaultFunctionPrefix = NewValue; |
| 161 } | 180 } |
| 162 | 181 |
| 163 const IceString &getDefaultGlobalPrefix() const { | 182 const IceString &getDefaultGlobalPrefix() const { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 bool DisableInternal; | 219 bool DisableInternal; |
| 201 bool DisableIRGeneration; | 220 bool DisableIRGeneration; |
| 202 bool DisableTranslation; | 221 bool DisableTranslation; |
| 203 bool DumpStats; | 222 bool DumpStats; |
| 204 bool EnableBlockProfile; | 223 bool EnableBlockProfile; |
| 205 bool FunctionSections; | 224 bool FunctionSections; |
| 206 bool GenerateUnitTestMessages; | 225 bool GenerateUnitTestMessages; |
| 207 bool PhiEdgeSplit; | 226 bool PhiEdgeSplit; |
| 208 bool RandomNopInsertion; | 227 bool RandomNopInsertion; |
| 209 bool RandomRegAlloc; | 228 bool RandomRegAlloc; |
| 229 bool ReorderFunctions; | |
| 230 bool ReorderGlobalVariables; | |
| 231 bool ReorderPooledConstants; | |
| 210 bool SkipUnimplemented; | 232 bool SkipUnimplemented; |
| 211 bool SubzeroTimingEnabled; | 233 bool SubzeroTimingEnabled; |
| 212 bool TimeEachFunction; | 234 bool TimeEachFunction; |
| 213 bool UseSandboxing; | 235 bool UseSandboxing; |
| 214 | 236 |
| 215 OptLevel Opt; | 237 OptLevel Opt; |
| 216 FileType OutFileType; | 238 FileType OutFileType; |
| 239 size_t NumTranslationThreads; // 0 means completely sequential | |
|
jvoung (off chromium)
2015/06/24 21:26:23
Let's leave size_t and the uint64_t where it was b
qining
2015/06/24 23:22:33
Done.
| |
| 240 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; | |
| 241 uint32_t RandomizeAndPoolImmediatesThreshold; | |
| 217 int RandomMaxNopsPerInstruction; | 242 int RandomMaxNopsPerInstruction; |
| 218 int RandomNopProbabilityAsPercentage; | 243 int RandomNopProbabilityAsPercentage; |
| 244 uint64_t RandomSeed; | |
|
jvoung (off chromium)
2015/06/24 21:26:23
Same -- Otherwise this is interleaving 32-bit thin
qining
2015/06/24 23:22:33
Done.
| |
| 245 uint32_t ReorderFunctionsWindowSize; | |
| 219 TargetArch TArch; | 246 TargetArch TArch; |
| 220 TargetInstructionSet TInstrSet; | 247 TargetInstructionSet TInstrSet; |
| 221 VerboseMask VMask; | 248 VerboseMask VMask; |
| 222 | 249 |
| 223 IceString DefaultFunctionPrefix; | 250 IceString DefaultFunctionPrefix; |
| 224 IceString DefaultGlobalPrefix; | 251 IceString DefaultGlobalPrefix; |
| 225 IceString TestPrefix; | 252 IceString TestPrefix; |
| 226 IceString TimingFocusOn; | 253 IceString TimingFocusOn; |
| 227 IceString TranslateOnly; | 254 IceString TranslateOnly; |
| 228 IceString VerboseFocusOn; | 255 IceString VerboseFocusOn; |
| 229 | |
| 230 // Immediates Randomization and Pooling options | |
| 231 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; | |
| 232 uint32_t RandomizeAndPoolImmediatesThreshold; | |
| 233 | |
| 234 size_t NumTranslationThreads; // 0 means completely sequential | |
| 235 uint64_t RandomSeed; | |
| 236 }; | 256 }; |
| 237 | 257 |
| 238 } // end of namespace Ice | 258 } // end of namespace Ice |
| 239 | 259 |
| 240 #endif // SUBZERO_SRC_ICECLFLAGS_H | 260 #endif // SUBZERO_SRC_ICECLFLAGS_H |
| OLD | NEW |