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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void setTranslateOnly(const IceString &NewValue) { TranslateOnly = NewValue; } | 133 void setTranslateOnly(const IceString &NewValue) { TranslateOnly = NewValue; } |
134 | 134 |
135 const IceString &getVerboseFocusOn() const { return VerboseFocusOn; } | 135 const IceString &getVerboseFocusOn() const { return VerboseFocusOn; } |
136 void setVerboseFocusOn(const IceString &NewValue) { | 136 void setVerboseFocusOn(const IceString &NewValue) { |
137 VerboseFocusOn = NewValue; | 137 VerboseFocusOn = NewValue; |
138 } | 138 } |
139 | 139 |
140 // size_t accessors. | 140 // size_t accessors. |
141 | 141 |
142 size_t getNumTranslationThreads() const { return NumTranslationThreads; } | 142 size_t getNumTranslationThreads() const { return NumTranslationThreads; } |
| 143 bool isSequential() const { return NumTranslationThreads == 0; } |
143 void setNumTranslationThreads(size_t NewValue) { | 144 void setNumTranslationThreads(size_t NewValue) { |
144 NumTranslationThreads = NewValue; | 145 NumTranslationThreads = NewValue; |
145 } | 146 } |
146 | 147 |
147 private: | 148 private: |
148 bool AllowErrorRecovery; | 149 bool AllowErrorRecovery; |
149 bool AllowUninitializedGlobals; | 150 bool AllowUninitializedGlobals; |
150 bool DataSections; | 151 bool DataSections; |
151 bool DecorateAsm; | 152 bool DecorateAsm; |
152 bool DisableInternal; | 153 bool DisableInternal; |
(...skipping 15 matching lines...) Expand all Loading... |
168 IceString TimingFocusOn; | 169 IceString TimingFocusOn; |
169 IceString TranslateOnly; | 170 IceString TranslateOnly; |
170 IceString VerboseFocusOn; | 171 IceString VerboseFocusOn; |
171 | 172 |
172 size_t NumTranslationThreads; // 0 means completely sequential | 173 size_t NumTranslationThreads; // 0 means completely sequential |
173 }; | 174 }; |
174 | 175 |
175 } // end of namespace Ice | 176 } // end of namespace Ice |
176 | 177 |
177 #endif // SUBZERO_SRC_ICECLFLAGS_H | 178 #endif // SUBZERO_SRC_ICECLFLAGS_H |
OLD | NEW |