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

Side by Side Diff: src/IceClFlags.h

Issue 920953002: Subzero: Use -filetype instead of -ias and -elf-writer. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Explicitly set the output file type for unit tests Created 5 years, 10 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 | « pydir/szbuild.py ('k') | src/IceDefs.h » ('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 13 matching lines...) Expand all
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 StubConstantCalls(false), SubzeroTimingEnabled(false),
34 TimeEachFunction(false), UseELFWriter(false), 34 TimeEachFunction(false), UseSandboxing(false),
35 UseIntegratedAssembler(false), UseSandboxing(false), 35 // FileType field
36 OutFileType(FT_Iasm),
36 // IceString fields. 37 // IceString fields.
37 DefaultFunctionPrefix(""), DefaultGlobalPrefix(""), TimingFocusOn(""), 38 DefaultFunctionPrefix(""), DefaultGlobalPrefix(""), TimingFocusOn(""),
38 TranslateOnly(""), VerboseFocusOn(""), 39 TranslateOnly(""), VerboseFocusOn(""),
39 // size_t fields. 40 // size_t fields.
40 NumTranslationThreads(0) {} 41 NumTranslationThreads(0) {}
41 42
42 // bool accessors. 43 // bool accessors.
43 44
44 bool getAllowErrorRecovery() const { return AllowErrorRecovery; } 45 bool getAllowErrorRecovery() const { return AllowErrorRecovery; }
45 void setAllowErrorRecovery(bool NewValue) { AllowErrorRecovery = NewValue; } 46 void setAllowErrorRecovery(bool NewValue) { AllowErrorRecovery = NewValue; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void setStubConstantCalls(bool NewValue) { StubConstantCalls = NewValue; } 93 void setStubConstantCalls(bool NewValue) { StubConstantCalls = NewValue; }
93 94
94 bool getSubzeroTimingEnabled() const { return SubzeroTimingEnabled; } 95 bool getSubzeroTimingEnabled() const { return SubzeroTimingEnabled; }
95 void setSubzeroTimingEnabled(bool NewValue) { 96 void setSubzeroTimingEnabled(bool NewValue) {
96 SubzeroTimingEnabled = NewValue; 97 SubzeroTimingEnabled = NewValue;
97 } 98 }
98 99
99 bool getTimeEachFunction() const { return ALLOW_DUMP && TimeEachFunction; } 100 bool getTimeEachFunction() const { return ALLOW_DUMP && TimeEachFunction; }
100 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; } 101 void setTimeEachFunction(bool NewValue) { TimeEachFunction = NewValue; }
101 102
102 bool getUseELFWriter() const { return UseELFWriter; }
103 void setUseELFWriter(bool NewValue) { UseELFWriter = NewValue; }
104
105 bool getUseIntegratedAssembler() const { return UseIntegratedAssembler; }
106 void setUseIntegratedAssembler(bool NewValue) {
107 UseIntegratedAssembler = NewValue;
108 }
109
110 bool getUseSandboxing() const { return UseSandboxing; } 103 bool getUseSandboxing() const { return UseSandboxing; }
111 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; } 104 void setUseSandboxing(bool NewValue) { UseSandboxing = NewValue; }
112 105
106 // FileType accessor.
107 FileType getOutFileType() const { return OutFileType; }
108 void setOutFileType(FileType NewValue) { OutFileType = NewValue; }
109
113 // IceString accessors. 110 // IceString accessors.
114 111
115 const IceString &getDefaultFunctionPrefix() const { 112 const IceString &getDefaultFunctionPrefix() const {
116 return DefaultFunctionPrefix; 113 return DefaultFunctionPrefix;
117 } 114 }
118 void setDefaultFunctionPrefix(const IceString &NewValue) { 115 void setDefaultFunctionPrefix(const IceString &NewValue) {
119 DefaultFunctionPrefix = NewValue; 116 DefaultFunctionPrefix = NewValue;
120 } 117 }
121 118
122 const IceString &getDefaultGlobalPrefix() const { 119 const IceString &getDefaultGlobalPrefix() const {
(...skipping 30 matching lines...) Expand all
153 bool DisableInternal; 150 bool DisableInternal;
154 bool DisableIRGeneration; 151 bool DisableIRGeneration;
155 bool DisableTranslation; 152 bool DisableTranslation;
156 bool DumpStats; 153 bool DumpStats;
157 bool FunctionSections; 154 bool FunctionSections;
158 bool GenerateUnitTestMessages; 155 bool GenerateUnitTestMessages;
159 bool PhiEdgeSplit; 156 bool PhiEdgeSplit;
160 bool StubConstantCalls; 157 bool StubConstantCalls;
161 bool SubzeroTimingEnabled; 158 bool SubzeroTimingEnabled;
162 bool TimeEachFunction; 159 bool TimeEachFunction;
163 bool UseELFWriter;
164 bool UseIntegratedAssembler;
165 bool UseSandboxing; 160 bool UseSandboxing;
166 161
162 FileType OutFileType;
163
167 IceString DefaultFunctionPrefix; 164 IceString DefaultFunctionPrefix;
168 IceString DefaultGlobalPrefix; 165 IceString DefaultGlobalPrefix;
169 IceString TimingFocusOn; 166 IceString TimingFocusOn;
170 IceString TranslateOnly; 167 IceString TranslateOnly;
171 IceString VerboseFocusOn; 168 IceString VerboseFocusOn;
172 169
173 size_t NumTranslationThreads; // 0 means completely sequential 170 size_t NumTranslationThreads; // 0 means completely sequential
174 }; 171 };
175 172
176 } // end of namespace Ice 173 } // end of namespace Ice
177 174
178 #endif // SUBZERO_SRC_ICECLFLAGS_H 175 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « pydir/szbuild.py ('k') | src/IceDefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698