Index: src/IceInstX8632.h |
diff --git a/src/IceInstX8632.h b/src/IceInstX8632.h |
index b04be147d13ce1e84b87529df75cdb5c45031ea1..f93d53ec0408294cbd6903934f3a641ca2ee9eda 100644 |
--- a/src/IceInstX8632.h |
+++ b/src/IceInstX8632.h |
@@ -86,6 +86,10 @@ public: |
return Operand->getKind() == static_cast<OperandKind>(kMem); |
} |
+ void setRandomized(bool R) { Randomized = R; } |
+ |
+ bool getRandomize() { return Randomized; } |
Jim Stichnoth
2015/06/20 17:42:16
Call this getRandomized() for consistency. Also d
qining
2015/06/20 23:32:37
Done.
Jim Stichnoth
2015/06/21 00:05:27
No -- it still isn't marked as const.
qining
2015/06/21 00:30:47
Oops, I'm so sorry I forgot to mark it const. It w
|
+ |
private: |
OperandX8632Mem(Cfg *Func, Type Ty, Variable *Base, Constant *Offset, |
Variable *Index, uint16_t Shift, SegmentRegisters SegmentReg); |
@@ -95,6 +99,10 @@ private: |
Variable *Index; |
uint16_t Shift; |
SegmentRegisters SegmentReg : 16; |
+ // A flag to show if this memory operand is a randomized one. |
+ // Randomized memory operands are generated in |
+ // TargetX8632::randomizeOrPoolImmediate() |
+ bool Randomized; |
}; |
// VariableSplit is a way to treat an f64 memory location as a pair |