Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Side by Side Diff: src/IceClFlags.h

Issue 1255303004: Add -reorder-basic-blocks option and fix nop insertion (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: rebase to master branch Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /// \file 10 /// \file
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return RandomizeAndPoolImmediatesOption; 146 return RandomizeAndPoolImmediatesOption;
147 } 147 }
148 148
149 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) { 149 void setRandomizeAndPoolImmediatesThreshold(uint32_t Threshold) {
150 RandomizeAndPoolImmediatesThreshold = Threshold; 150 RandomizeAndPoolImmediatesThreshold = Threshold;
151 } 151 }
152 uint32_t getRandomizeAndPoolImmediatesThreshold() const { 152 uint32_t getRandomizeAndPoolImmediatesThreshold() const {
153 return RandomizeAndPoolImmediatesThreshold; 153 return RandomizeAndPoolImmediatesThreshold;
154 } 154 }
155 155
156 bool shouldReorderBasicBlocks() const { return ReorderBasicBlocks; }
157 void setShouldReorderBasicBlocks(bool NewValue) {
158 ReorderBasicBlocks = NewValue;
159 }
160
156 void setShouldReorderFunctions(bool Option) { ReorderFunctions = Option; } 161 void setShouldReorderFunctions(bool Option) { ReorderFunctions = Option; }
157 bool shouldReorderFunctions() const { return ReorderFunctions; } 162 bool shouldReorderFunctions() const { return ReorderFunctions; }
158 163
159 void setReorderFunctionsWindowSize(uint32_t Size) { 164 void setReorderFunctionsWindowSize(uint32_t Size) {
160 ReorderFunctionsWindowSize = Size; 165 ReorderFunctionsWindowSize = Size;
161 } 166 }
162 uint32_t getReorderFunctionsWindowSize() const { 167 uint32_t getReorderFunctionsWindowSize() const {
163 return ReorderFunctionsWindowSize; 168 return ReorderFunctionsWindowSize;
164 } 169 }
165 170
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool DisableInternal; 227 bool DisableInternal;
223 bool DisableIRGeneration; 228 bool DisableIRGeneration;
224 bool DisableTranslation; 229 bool DisableTranslation;
225 bool DumpStats; 230 bool DumpStats;
226 bool EnableBlockProfile; 231 bool EnableBlockProfile;
227 bool FunctionSections; 232 bool FunctionSections;
228 bool GenerateUnitTestMessages; 233 bool GenerateUnitTestMessages;
229 bool PhiEdgeSplit; 234 bool PhiEdgeSplit;
230 bool RandomNopInsertion; 235 bool RandomNopInsertion;
231 bool RandomRegAlloc; 236 bool RandomRegAlloc;
237 bool ReorderBasicBlocks;
232 bool ReorderFunctions; 238 bool ReorderFunctions;
233 bool ReorderGlobalVariables; 239 bool ReorderGlobalVariables;
234 bool ReorderPooledConstants; 240 bool ReorderPooledConstants;
235 bool SkipUnimplemented; 241 bool SkipUnimplemented;
236 bool SubzeroTimingEnabled; 242 bool SubzeroTimingEnabled;
237 bool TimeEachFunction; 243 bool TimeEachFunction;
238 bool UseSandboxing; 244 bool UseSandboxing;
239 245
240 OptLevel Opt; 246 OptLevel Opt;
241 FileType OutFileType; 247 FileType OutFileType;
(...skipping 13 matching lines...) Expand all
255 IceString TranslateOnly; 261 IceString TranslateOnly;
256 IceString VerboseFocusOn; 262 IceString VerboseFocusOn;
257 263
258 size_t NumTranslationThreads; // 0 means completely sequential 264 size_t NumTranslationThreads; // 0 means completely sequential
259 uint64_t RandomSeed; 265 uint64_t RandomSeed;
260 }; 266 };
261 267
262 } // end of namespace Ice 268 } // end of namespace Ice
263 269
264 #endif // SUBZERO_SRC_ICECLFLAGS_H 270 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceClFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698