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

Side by Side Diff: src/IceClFlags.h

Issue 1147023007: Subzero: Basic Block Profiler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Adds Basic Block Profiling. Created 5 years, 6 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
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 // This file declares command line flags controlling translation. 10 // This file declares command line flags controlling translation.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void setSubzeroTimingEnabled(bool NewValue) { 93 void setSubzeroTimingEnabled(bool NewValue) {
94 SubzeroTimingEnabled = NewValue; 94 SubzeroTimingEnabled = NewValue;
95 } 95 }
96 96
97 bool getTimeEachFunction() const { return ALLOW_DUMP && TimeEachFunction; } 97 bool getTimeEachFunction() const { return ALLOW_DUMP && TimeEachFunction; }
98 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; } 98 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; }
99 99
100 bool getUseSandboxing() const { return UseSandboxing; } 100 bool getUseSandboxing() const { return UseSandboxing; }
101 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; } 101 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; }
102 102
103 bool getEnableBlockProfile() const { return EnableBlockProfile; }
Jim Stichnoth 2015/06/08 23:45:31 Sort these alphabetically within the bool section.
John 2015/06/09 15:36:18 Done.
104 void setEnableBlockProfile(bool NewValue) { EnableBlockProfile = NewValue; }
105
103 // Enum and integer accessors. 106 // Enum and integer accessors.
104 OptLevel getOptLevel() const { return Opt; } 107 OptLevel getOptLevel() const { return Opt; }
105 void setOptLevel(OptLevel NewValue) { Opt = NewValue; } 108 void setOptLevel(OptLevel NewValue) { Opt = NewValue; }
106 109
107 FileType getOutFileType() const { return OutFileType; } 110 FileType getOutFileType() const { return OutFileType; }
108 void setOutFileType(FileType NewValue) { OutFileType = NewValue; } 111 void setOutFileType(FileType NewValue) { OutFileType = NewValue; }
109 112
110 int getMaxNopsPerInstruction() const { return RandomMaxNopsPerInstruction; } 113 int getMaxNopsPerInstruction() const { return RandomMaxNopsPerInstruction; }
111 void setMaxNopsPerInstruction(int NewValue) { 114 void setMaxNopsPerInstruction(int NewValue) {
112 RandomMaxNopsPerInstruction = NewValue; 115 RandomMaxNopsPerInstruction = NewValue;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 bool DumpStats; 187 bool DumpStats;
185 bool FunctionSections; 188 bool FunctionSections;
186 bool GenerateUnitTestMessages; 189 bool GenerateUnitTestMessages;
187 bool PhiEdgeSplit; 190 bool PhiEdgeSplit;
188 bool RandomNopInsertion; 191 bool RandomNopInsertion;
189 bool RandomRegAlloc; 192 bool RandomRegAlloc;
190 bool SkipUnimplemented; 193 bool SkipUnimplemented;
191 bool SubzeroTimingEnabled; 194 bool SubzeroTimingEnabled;
192 bool TimeEachFunction; 195 bool TimeEachFunction;
193 bool UseSandboxing; 196 bool UseSandboxing;
197 bool EnableBlockProfile;
194 198
195 OptLevel Opt; 199 OptLevel Opt;
196 FileType OutFileType; 200 FileType OutFileType;
197 int RandomMaxNopsPerInstruction; 201 int RandomMaxNopsPerInstruction;
198 int RandomNopProbabilityAsPercentage; 202 int RandomNopProbabilityAsPercentage;
199 TargetArch TArch; 203 TargetArch TArch;
200 TargetInstructionSet TInstrSet; 204 TargetInstructionSet TInstrSet;
201 VerboseMask VMask; 205 VerboseMask VMask;
202 206
203 IceString DefaultFunctionPrefix; 207 IceString DefaultFunctionPrefix;
204 IceString DefaultGlobalPrefix; 208 IceString DefaultGlobalPrefix;
205 IceString TestPrefix; 209 IceString TestPrefix;
206 IceString TimingFocusOn; 210 IceString TimingFocusOn;
207 IceString TranslateOnly; 211 IceString TranslateOnly;
208 IceString VerboseFocusOn; 212 IceString VerboseFocusOn;
209 213
210 size_t NumTranslationThreads; // 0 means completely sequential 214 size_t NumTranslationThreads; // 0 means completely sequential
211 uint64_t RandomSeed; 215 uint64_t RandomSeed;
212 }; 216 };
213 217
214 } // end of namespace Ice 218 } // end of namespace Ice
215 219
216 #endif // SUBZERO_SRC_ICECLFLAGS_H 220 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698