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

Unified Diff: src/IceTargetLoweringX8632.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 | « src/IceGlobalContext.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8632.h
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h
index 499790e5e90bc2ea9489fe3cb9134762db924edd..b5dd4e709f79fdabace4e3a85d3fddd7581bfadf 100644
--- a/src/IceTargetLoweringX8632.h
+++ b/src/IceTargetLoweringX8632.h
@@ -128,6 +128,8 @@ protected:
void sortByAlignment(VarList &Dest, const VarList &Source) const;
+ Variable *randomizeImmediate(Constant *Immediate);
+
// Operand legalization helpers. To deal with address mode
// constraints, the helpers will create a new Operand and emit
// instructions that guarantee that the Operand kind is one of those
@@ -471,6 +473,8 @@ protected:
SizeT NextLabelNumber;
bool ComputedLiveRanges;
VarList PhysicalRegisters;
+ bool ConstantBlindingCookieInitialized;
+ uint32_t ConstantBlindingCookie;
static IceString RegNames[];
private:
@@ -478,6 +482,7 @@ private:
TargetX8632 &operator=(const TargetX8632 &) LLVM_DELETED_FUNCTION;
virtual ~TargetX8632() {}
template <typename T> void emitConstantPool() const;
+ void emitPooledImmediates() const;
};
class TargetGlobalInitX8632 : public TargetGlobalInitLowering {
« no previous file with comments | « src/IceGlobalContext.cpp ('k') | src/IceTargetLoweringX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698