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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 IceString DefaultGlobalPrefix; | 243 IceString DefaultGlobalPrefix; |
| 225 IceString TestPrefix; | 244 IceString TestPrefix; |
| 226 IceString TimingFocusOn; | 245 IceString TimingFocusOn; |
| 227 IceString TranslateOnly; | 246 IceString TranslateOnly; |
| 228 IceString VerboseFocusOn; | 247 IceString VerboseFocusOn; |
| 229 | 248 |
| 230 // Immediates Randomization and Pooling options | 249 // Immediates Randomization and Pooling options |
| 231 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; | 250 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; |
| 232 uint32_t RandomizeAndPoolImmediatesThreshold; | 251 uint32_t RandomizeAndPoolImmediatesThreshold; |
| 233 | 252 |
| 253 // Function reordering options | |
| 254 bool ReorderFunctions; | |
|
jvoung (off chromium)
2015/06/24 17:36:37
We had previously grouped all of the "bool" option
qining
2015/06/24 20:18:55
Done.
| |
| 255 uint32_t ReorderFunctionsWindowSize; | |
| 256 | |
| 257 // Global variable reordering option | |
| 258 bool ReorderGlobalVariables; | |
| 259 | |
| 260 // Pooled constant reordering option | |
| 261 bool ReorderPooledConstants; | |
| 262 | |
| 234 size_t NumTranslationThreads; // 0 means completely sequential | 263 size_t NumTranslationThreads; // 0 means completely sequential |
| 235 uint64_t RandomSeed; | 264 uint64_t RandomSeed; |
| 236 }; | 265 }; |
| 237 | 266 |
| 238 } // end of namespace Ice | 267 } // end of namespace Ice |
| 239 | 268 |
| 240 #endif // SUBZERO_SRC_ICECLFLAGS_H | 269 #endif // SUBZERO_SRC_ICECLFLAGS_H |
| OLD | NEW |