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

Side by Side Diff: src/IceClFlags.h

Issue 1017373002: Subzero: Assemble calls to constant addresses. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: move test back Created 5 years, 9 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 | « no previous file | src/IceELFObjectWriter.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 // This file declares command line flags controlling translation. 10 // This file declares command line flags controlling translation.
(...skipping 12 matching lines...) Expand all
23 ClFlags &operator=(const ClFlags &) = delete; 23 ClFlags &operator=(const ClFlags &) = delete;
24 24
25 public: 25 public:
26 ClFlags() 26 ClFlags()
27 : // bool fields. 27 : // bool fields.
28 AllowErrorRecovery(false), 28 AllowErrorRecovery(false),
29 AllowUninitializedGlobals(false), DataSections(false), 29 AllowUninitializedGlobals(false), DataSections(false),
30 DecorateAsm(false), DisableInternal(false), DisableIRGeneration(false), 30 DecorateAsm(false), DisableInternal(false), DisableIRGeneration(false),
31 DisableTranslation(false), DumpStats(false), FunctionSections(false), 31 DisableTranslation(false), DumpStats(false), FunctionSections(false),
32 GenerateUnitTestMessages(false), PhiEdgeSplit(false), 32 GenerateUnitTestMessages(false), PhiEdgeSplit(false),
33 StubConstantCalls(false), SubzeroTimingEnabled(false), 33 SubzeroTimingEnabled(false), TimeEachFunction(false),
34 TimeEachFunction(false), UseSandboxing(false), 34 UseSandboxing(false),
35 // FileType field 35 // FileType field
36 OutFileType(FT_Iasm), 36 OutFileType(FT_Iasm),
37 // IceString fields. 37 // IceString fields.
38 DefaultFunctionPrefix(""), DefaultGlobalPrefix(""), TimingFocusOn(""), 38 DefaultFunctionPrefix(""), DefaultGlobalPrefix(""), TimingFocusOn(""),
39 TranslateOnly(""), VerboseFocusOn(""), 39 TranslateOnly(""), VerboseFocusOn(""),
40 // size_t fields. 40 // size_t fields.
41 NumTranslationThreads(0) {} 41 NumTranslationThreads(0) {}
42 42
43 // bool accessors. 43 // bool accessors.
44 44
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // will not be readable. Hence, turn off. 80 // will not be readable. Hence, turn off.
81 return !ALLOW_DUMP || GenerateUnitTestMessages; 81 return !ALLOW_DUMP || GenerateUnitTestMessages;
82 } 82 }
83 void setGenerateUnitTestMessages(bool NewValue) { 83 void setGenerateUnitTestMessages(bool NewValue) {
84 GenerateUnitTestMessages = NewValue; 84 GenerateUnitTestMessages = NewValue;
85 } 85 }
86 86
87 bool getPhiEdgeSplit() const { return PhiEdgeSplit; } 87 bool getPhiEdgeSplit() const { return PhiEdgeSplit; }
88 void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; } 88 void setPhiEdgeSplit(bool NewValue) { PhiEdgeSplit = NewValue; }
89 89
90 bool getStubConstantCalls() const {
91 return !ALLOW_MINIMAL_BUILD && StubConstantCalls;
92 }
93 void setStubConstantCalls(bool NewValue) { StubConstantCalls = NewValue; }
94
95 bool getSubzeroTimingEnabled() const { return SubzeroTimingEnabled; } 90 bool getSubzeroTimingEnabled() const { return SubzeroTimingEnabled; }
96 void setSubzeroTimingEnabled(bool NewValue) { 91 void setSubzeroTimingEnabled(bool NewValue) {
97 SubzeroTimingEnabled = NewValue; 92 SubzeroTimingEnabled = NewValue;
98 } 93 }
99 94
100 bool getTimeEachFunction() const { return ALLOW_DUMP && TimeEachFunction; } 95 bool getTimeEachFunction() const { return ALLOW_DUMP && TimeEachFunction; }
101 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; } 96 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; }
102 97
103 bool getUseSandboxing() const { return UseSandboxing; } 98 bool getUseSandboxing() const { return UseSandboxing; }
104 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; } 99 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 bool AllowUninitializedGlobals; 142 bool AllowUninitializedGlobals;
148 bool DataSections; 143 bool DataSections;
149 bool DecorateAsm; 144 bool DecorateAsm;
150 bool DisableInternal; 145 bool DisableInternal;
151 bool DisableIRGeneration; 146 bool DisableIRGeneration;
152 bool DisableTranslation; 147 bool DisableTranslation;
153 bool DumpStats; 148 bool DumpStats;
154 bool FunctionSections; 149 bool FunctionSections;
155 bool GenerateUnitTestMessages; 150 bool GenerateUnitTestMessages;
156 bool PhiEdgeSplit; 151 bool PhiEdgeSplit;
157 bool StubConstantCalls;
158 bool SubzeroTimingEnabled; 152 bool SubzeroTimingEnabled;
159 bool TimeEachFunction; 153 bool TimeEachFunction;
160 bool UseSandboxing; 154 bool UseSandboxing;
161 155
162 FileType OutFileType; 156 FileType OutFileType;
163 157
164 IceString DefaultFunctionPrefix; 158 IceString DefaultFunctionPrefix;
165 IceString DefaultGlobalPrefix; 159 IceString DefaultGlobalPrefix;
166 IceString TimingFocusOn; 160 IceString TimingFocusOn;
167 IceString TranslateOnly; 161 IceString TranslateOnly;
168 IceString VerboseFocusOn; 162 IceString VerboseFocusOn;
169 163
170 size_t NumTranslationThreads; // 0 means completely sequential 164 size_t NumTranslationThreads; // 0 means completely sequential
171 }; 165 };
172 166
173 } // end of namespace Ice 167 } // end of namespace Ice
174 168
175 #endif // SUBZERO_SRC_ICECLFLAGS_H 169 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « no previous file | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698