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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
169 | 169 |
170 size_t getNumTranslationThreads() const { return NumTranslationThreads; } | 170 size_t getNumTranslationThreads() const { return NumTranslationThreads; } |
171 bool isSequential() const { return NumTranslationThreads == 0; } | 171 bool isSequential() const { return NumTranslationThreads == 0; } |
172 void setNumTranslationThreads(size_t NewValue) { | 172 void setNumTranslationThreads(size_t NewValue) { |
173 NumTranslationThreads = NewValue; | 173 NumTranslationThreads = NewValue; |
174 } | 174 } |
175 | 175 |
176 uint64_t getRandomSeed() const { return RandomSeed; } | 176 uint64_t getRandomSeed() const { return RandomSeed; } |
177 void setRandomSeed(size_t NewValue) { RandomSeed = NewValue; } | 177 void setRandomSeed(size_t NewValue) { RandomSeed = NewValue; } |
178 | 178 |
179 // Immediates Randomization and Pooling options getter and setter | |
180 void setRandomizeAndPoolImmediatesOption( | |
181 Ice::RandomizeAndPoolImmediatesEnum option) { | |
Jim Stichnoth
2015/06/12 23:48:17
capitalize Option per LLVM coding conventions
qining
2015/06/17 04:28:53
Done.
| |
182 RandomizeAndPoolImmediatesOption = option; | |
183 } | |
184 bool shouldRandomizeImmediates() const { | |
Jim Stichnoth
2015/06/12 23:48:16
I think it would be better to have a single getRan
qining
2015/06/17 04:28:53
Done.
| |
185 return RandomizeAndPoolImmediatesOption == Ice::RandomizeImmediates; | |
186 } | |
187 bool shouldPoolImmediates() const { | |
188 return RandomizeAndPoolImmediatesOption == Ice::PoolImmediates; | |
189 } | |
190 bool shouldNotRandomizeOrPoolImmediates() const { | |
191 return RandomizeAndPoolImmediatesOption == | |
192 Ice::NoneImmediatesRandomizationPooling; | |
Jim Stichnoth
2015/06/12 23:48:17
I don't think you need "Ice::" here and above sinc
qining
2015/06/17 04:28:53
Done.
| |
193 } | |
194 | |
179 private: | 195 private: |
180 bool AllowErrorRecovery; | 196 bool AllowErrorRecovery; |
181 bool AllowUninitializedGlobals; | 197 bool AllowUninitializedGlobals; |
182 bool DataSections; | 198 bool DataSections; |
183 bool DecorateAsm; | 199 bool DecorateAsm; |
184 bool DisableInternal; | 200 bool DisableInternal; |
185 bool DisableIRGeneration; | 201 bool DisableIRGeneration; |
186 bool DisableTranslation; | 202 bool DisableTranslation; |
187 bool DumpStats; | 203 bool DumpStats; |
188 bool EnableBlockProfile; | 204 bool EnableBlockProfile; |
(...skipping 15 matching lines...) Expand all Loading... | |
204 TargetInstructionSet TInstrSet; | 220 TargetInstructionSet TInstrSet; |
205 VerboseMask VMask; | 221 VerboseMask VMask; |
206 | 222 |
207 IceString DefaultFunctionPrefix; | 223 IceString DefaultFunctionPrefix; |
208 IceString DefaultGlobalPrefix; | 224 IceString DefaultGlobalPrefix; |
209 IceString TestPrefix; | 225 IceString TestPrefix; |
210 IceString TimingFocusOn; | 226 IceString TimingFocusOn; |
211 IceString TranslateOnly; | 227 IceString TranslateOnly; |
212 IceString VerboseFocusOn; | 228 IceString VerboseFocusOn; |
213 | 229 |
230 // Immediates Randomization and Pooling options | |
231 RandomizeAndPoolImmediatesEnum RandomizeAndPoolImmediatesOption; | |
232 | |
214 size_t NumTranslationThreads; // 0 means completely sequential | 233 size_t NumTranslationThreads; // 0 means completely sequential |
215 uint64_t RandomSeed; | 234 uint64_t RandomSeed; |
216 }; | 235 }; |
217 | 236 |
218 } // end of namespace Ice | 237 } // end of namespace Ice |
219 | 238 |
220 #endif // SUBZERO_SRC_ICECLFLAGS_H | 239 #endif // SUBZERO_SRC_ICECLFLAGS_H |
OLD | NEW |