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

Side by Side Diff: src/IceClFlags.h

Issue 1848873002: Force sequential parsing when threads=0. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 8 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/IceGlobalContext.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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 !BuildDefs::minimal() || true; \ 123 !BuildDefs::minimal() || true; \
124 set##Name##Impl<Enable>(std::move(Value)); \ 124 set##Name##Impl<Enable>(std::move(Value)); \
125 } \ 125 } \
126 \ 126 \
127 private: 127 private:
128 COMMAND_LINE_FLAGS 128 COMMAND_LINE_FLAGS
129 #undef X 129 #undef X
130 130
131 public: 131 public:
132 bool isSequential() const { return NumTranslationThreads == 0; } 132 bool isSequential() const { return NumTranslationThreads == 0; }
133 bool isParseParallel() {
Jim Stichnoth 2016/03/31 18:05:09 const
134 return getParseParallel() && !isSequential() && getBuildOnRead();
135 }
133 std::string getAppName() const { return AppName; } 136 std::string getAppName() const { return AppName; }
134 void setAppName(const std::string &Value) { AppName = Value; } 137 void setAppName(const std::string &Value) { AppName = Value; }
135 138
136 /// \brief Get the value of ClFlags::GenerateUnitTestMessages 139 /// \brief Get the value of ClFlags::GenerateUnitTestMessages
137 /// 140 ///
138 /// Note: If dump routines have been turned off, the error messages 141 /// Note: If dump routines have been turned off, the error messages
139 /// will not be readable. Hence, turn off. 142 /// will not be readable. Hence, turn off.
140 bool getGenerateUnitTestMessages() const { 143 bool getGenerateUnitTestMessages() const {
141 return !BuildDefs::dump() || GenerateUnitTestMessages; 144 return !BuildDefs::dump() || GenerateUnitTestMessages;
142 } 145 }
143 /// Set ClFlags::GenerateUnitTestMessages to a new value 146 /// Set ClFlags::GenerateUnitTestMessages to a new value
144 void setGenerateUnitTestMessages(bool NewValue) { 147 void setGenerateUnitTestMessages(bool NewValue) {
145 GenerateUnitTestMessages = NewValue; 148 GenerateUnitTestMessages = NewValue;
146 } 149 }
147 150
148 private: 151 private:
149 std::string AppName; 152 std::string AppName;
150 153
151 /// Initialized to false; not set by the command line. 154 /// Initialized to false; not set by the command line.
152 bool GenerateUnitTestMessages; 155 bool GenerateUnitTestMessages;
153 }; 156 };
154 157
155 } // end of namespace Ice 158 } // end of namespace Ice
156 159
157 #endif // SUBZERO_SRC_ICECLFLAGS_H 160 #endif // SUBZERO_SRC_ICECLFLAGS_H
OLDNEW
« no previous file with comments | « no previous file | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698