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

Unified Diff: src/IceGlobalContext.h

Issue 460233002: Subzero: Randomize immediates by constant blinding or pooling. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Comments round 1 Created 6 years, 4 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 | « no previous file | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceGlobalContext.h
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h
index b67a232fc658770fb49b580f99add84c23812346..a41edc8abd0cb67edb7b243a8cc5b190edd7706b 100644
--- a/src/IceGlobalContext.h
+++ b/src/IceGlobalContext.h
@@ -85,10 +85,17 @@ public:
Constant *getConstantUndef(Type Ty);
// Returns a zero value.
Constant *getConstantZero(Type Ty);
+
+ // Adds the given constant to the list of pooled immediates.
+ void addConstantPooledImmediate(const IceString &Name, Constant *Immediate);
+
// getConstantPool() returns a copy of the constant pool for
// constants of a given type.
ConstantList getConstantPool(Type Ty) const;
+ // getImmediatePool() returns the list of pooled immediates.
+ ConstantList getImmediatePool() const;
+
const ClFlags &getFlags() const { return Flags; }
// Allocate data of type T using the global allocator.
« 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