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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 void setFunctionSections(bool NewValue) { FunctionSections = NewValue; } | 72 void setFunctionSections(bool NewValue) { FunctionSections = NewValue; } |
| 73 | 73 |
| 74 bool getGenerateUnitTestMessages() const { | 74 bool getGenerateUnitTestMessages() const { |
| 75 // Note: If dump routines have been turned off, the error messages | 75 // Note: If dump routines have been turned off, the error messages |
| 76 // will not be readable. Hence, turn off. | 76 // will not be readable. Hence, turn off. |
| 77 return !ALLOW_DUMP || GenerateUnitTestMessages; | 77 return !ALLOW_DUMP || GenerateUnitTestMessages; |
| 78 } | 78 } |
| 79 void setGenerateUnitTestMessages(bool NewValue) { | 79 void setGenerateUnitTestMessages(bool NewValue) { |
| 80 GenerateUnitTestMessages = NewValue; | 80 GenerateUnitTestMessages = NewValue; |
| 81 } | 81 } |
| 82 | |
|
John
2015/06/24 00:24:00
why was this removed?
qining
2015/06/24 01:20:40
Done.
| |
| 83 bool getPhiEdgeSplit() const { return PhiEdgeSplit; } | 82 bool getPhiEdgeSplit() const { return PhiEdgeSplit; } |
| 84 void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; } | 83 void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; } |
| 85 | 84 |
| 86 bool shouldDoNopInsertion() const { return RandomNopInsertion; } | 85 bool shouldDoNopInsertion() const { return RandomNopInsertion; } |
| 87 void setShouldDoNopInsertion(bool NewValue) { RandomNopInsertion = NewValue; } | 86 void setShouldDoNopInsertion(bool NewValue) { RandomNopInsertion = NewValue; } |
| 88 | 87 |
| 89 bool shouldRandomizeRegAlloc() const { return RandomRegAlloc; } | 88 bool shouldRandomizeRegAlloc() const { return RandomRegAlloc; } |
| 90 void setShouldRandomizeRegAlloc(bool NewValue) { RandomRegAlloc = NewValue; } | 89 void setShouldRandomizeRegAlloc(bool NewValue) { RandomRegAlloc = NewValue; } |
| 91 | 90 |
| 92 bool getSkipUnimplemented() const { return SkipUnimplemented; } | 91 bool getSkipUnimplemented() const { return SkipUnimplemented; } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 | |
|
John
2015/06/24 00:24:00
to be consistent with the rest of this file do not
qining
2015/06/24 01:20:39
Done.
| |
| 155 bool shouldReorderFunctions() const { return ReorderFunctions; } | |
| 156 | |
| 157 void setReorderFunctionsWindowSize(uint32_t Size) { | |
| 158 ReorderFunctionsWindowSize = Size; | |
| 159 } | |
| 160 | |
| 161 uint32_t getReorderFunctionsWindowSize() const { | |
| 162 return ReorderFunctionsWindowSize; | |
| 163 } | |
| 164 | |
| 165 void setShouldReorderGlobalVariables(bool Option) { | |
| 166 ReorderGlobalVariables = Option; | |
| 167 } | |
| 168 | |
| 169 bool shouldReorderGlobalVariables() const { return ReorderGlobalVariables; } | |
| 170 | |
| 171 void setShouldReorderPooledConstants(bool Option) { | |
| 172 ReorderPooledConstants = Option; | |
| 173 } | |
| 174 | |
| 175 bool shouldReorderPooledConstants() const { return ReorderPooledConstants; } | |
| 176 | |
| 154 // IceString accessors. | 177 // IceString accessors. |
| 155 | 178 |
| 156 const IceString &getDefaultFunctionPrefix() const { | 179 const IceString &getDefaultFunctionPrefix() const { |
| 157 return DefaultFunctionPrefix; | 180 return DefaultFunctionPrefix; |
| 158 } | 181 } |
| 159 void setDefaultFunctionPrefix(const IceString &NewValue) { | 182 void setDefaultFunctionPrefix(const IceString &NewValue) { |
| 160 DefaultFunctionPrefix = NewValue; | 183 DefaultFunctionPrefix = NewValue; |
| 161 } | 184 } |
| 162 | 185 |
| 163 const IceString &getDefaultGlobalPrefix() const { | 186 const IceString &getDefaultGlobalPrefix() const { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 IceString DefaultGlobalPrefix; | 247 IceString DefaultGlobalPrefix; |
| 225 IceString TestPrefix; | 248 IceString TestPrefix; |
| 226 IceString TimingFocusOn; | 249 IceString TimingFocusOn; |
| 227 IceString TranslateOnly; | 250 IceString TranslateOnly; |
| 228 IceString VerboseFocusOn; | 251 IceString VerboseFocusOn; |
| 229 | 252 |
| 230 // Immediates Randomization and Pooling options | 253 // Immediates Randomization and Pooling options |
| 231 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; | 254 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; |
| 232 uint32_t RandomizeAndPoolImmediatesThreshold; | 255 uint32_t RandomizeAndPoolImmediatesThreshold; |
| 233 | 256 |
| 257 // Function reordering options | |
| 258 bool ReorderFunctions; | |
| 259 uint32_t ReorderFunctionsWindowSize; | |
| 260 | |
| 261 // Global variable reordering option | |
| 262 bool ReorderGlobalVariables; | |
| 263 | |
| 264 // Pooled constant reordering option | |
| 265 bool ReorderPooledConstants; | |
| 266 | |
| 234 size_t NumTranslationThreads; // 0 means completely sequential | 267 size_t NumTranslationThreads; // 0 means completely sequential |
| 235 uint64_t RandomSeed; | 268 uint64_t RandomSeed; |
| 236 }; | 269 }; |
| 237 | 270 |
| 238 } // end of namespace Ice | 271 } // end of namespace Ice |
| 239 | 272 |
| 240 #endif // SUBZERO_SRC_ICECLFLAGS_H | 273 #endif // SUBZERO_SRC_ICECLFLAGS_H |
| OLD | NEW |