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

Unified Diff: src/IceClFlags.h

Issue 1900543002: Subzero: Allow per-method controls. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More cleanup 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceClFlags.cpp » ('j') | src/IceClFlags.def » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlags.h
diff --git a/src/IceClFlags.h b/src/IceClFlags.h
index 0a2fc56dbe0bb15c77b094547d0f013ae1cc8269..46159038840fb2251bf5027aa1d52a8a229c0953 100644
--- a/src/IceClFlags.h
+++ b/src/IceClFlags.h
@@ -18,6 +18,7 @@
#include "IceDefs.h"
#include "IceBuildDefs.h"
#include "IceClFlags.def"
+#include "IceRangeSpec.h"
#include "IceTypes.h"
#ifdef __clang__
@@ -150,12 +151,36 @@ public:
void setGenerateUnitTestMessages(bool NewValue) {
GenerateUnitTestMessages = NewValue;
}
+ bool matchForceO2(GlobalString Name, uint32_t Number) const {
+ return ForceO2.match(Name, Number);
+ }
+ bool matchTestStatus(GlobalString Name, uint32_t Number) const {
+ return TestStatus.match(Name, Number);
+ }
+ bool matchTimingFocus(GlobalString Name, uint32_t Number) const {
+ return TimingFocus.match(Name, Number);
+ }
+ bool matchTranslateOnly(GlobalString Name, uint32_t Number) const {
+ return TranslateOnly.match(Name, Number);
+ }
+ bool matchVerboseFocusOn(GlobalString Name, uint32_t Number) const {
+ return VerboseFocus.match(Name, Number);
+ }
+ bool matchVerboseFocusOn(const std::string &Name, uint32_t Number) const {
+ return VerboseFocus.match(Name, Number);
+ }
private:
std::string AppName;
/// Initialized to false; not set by the command line.
bool GenerateUnitTestMessages;
+
+ RangeSpec ForceO2;
+ RangeSpec TestStatus;
+ RangeSpec TimingFocus;
+ RangeSpec TranslateOnly;
+ RangeSpec VerboseFocus;
};
inline const ClFlags &getFlags() { return ClFlags::Flags; }
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceClFlags.cpp » ('j') | src/IceClFlags.def » ('J')

Powered by Google App Engine
This is Rietveld 408576698