Index: src/IceTargetLoweringX8632.h |
diff --git a/src/IceTargetLoweringX8632.h b/src/IceTargetLoweringX8632.h |
index 6d209dc8f4c72d179953ef8d9a0c83adea4b9cce..ea6cdb97debc2dbe629f9ec51144112a29c20c5d 100644 |
--- a/src/IceTargetLoweringX8632.h |
+++ b/src/IceTargetLoweringX8632.h |
@@ -40,7 +40,7 @@ public: |
virtual SizeT getFrameOrStackReg() const { |
return IsEbpBasedFrame ? Reg_ebp : Reg_esp; |
} |
- virtual size_t typeWidthInBytesOnStack(Type Ty) { |
+ virtual size_t typeWidthInBytesOnStack(Type Ty) const { |
// Round up to the next multiple of 4 bytes. In particular, i1, |
// i8, and i16 are rounded up to 4 bytes. |
return (typeWidthInBytes(Ty) + 3) & ~3; |
@@ -125,6 +125,8 @@ protected: |
void scalarizeArithmetic(InstArithmetic::OpKind K, Variable *Dest, |
Operand *Src0, Operand *Src1); |
+ 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 |
@@ -472,6 +474,7 @@ private: |
TargetX8632 &operator=(const TargetX8632 &) LLVM_DELETED_FUNCTION; |
virtual ~TargetX8632() {} |
template <typename T> void emitConstantPool() const; |
+ void emitPooledImmediates() const; |
}; |
class TargetGlobalInitX8632 : public TargetGlobalInitLowering { |