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

Unified Diff: src/IceCfg.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 | « Makefile.standalone ('k') | src/IceCfg.cpp » ('j') | src/IceClFlags.def » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index a34a9ee44f61577bb4a95501aca15a3ebe4d1028..7c53b1deb9a7c43829cb15bcaff2768e6fb29bb6 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -40,6 +40,7 @@ public:
GlobalContext *getContext() const { return Ctx; }
uint32_t getSequenceNumber() const { return SequenceNumber; }
+ OptLevel getOptLevel() const { return OptimizationLevel; }
static constexpr VerboseMask defaultVerboseMask() {
return (IceV_NO_PER_PASS_DUMP_BEYOND << 1) - 1;
@@ -296,7 +297,8 @@ private:
void findRematerializable();
GlobalContext *Ctx;
- uint32_t SequenceNumber; /// output order for emission
+ uint32_t SequenceNumber; /// output order for emission
+ OptLevel OptimizationLevel = Opt_m1;
uint32_t ConstantBlindingCookie = 0; /// cookie for constant blinding
VerboseMask VMask;
GlobalString FunctionName;
« no previous file with comments | « Makefile.standalone ('k') | src/IceCfg.cpp » ('j') | src/IceClFlags.def » ('J')

Powered by Google App Engine
This is Rietveld 408576698