Index: src/IceOperand.h |
diff --git a/src/IceOperand.h b/src/IceOperand.h |
index 727ea3da239b9be3c719c6f342bdc410da24f3d8..5263cc5a5498abacb49348e6f3c9ccb7928b58a0 100644 |
--- a/src/IceOperand.h |
+++ b/src/IceOperand.h |
@@ -77,6 +77,7 @@ public: |
protected: |
Operand(OperandKind Kind, Type Ty) |
: Ty(Ty), Kind(Kind), NumVars(0), Vars(NULL) {} |
+ Operand(Operand &&O) = default; |
const Type Ty; |
const OperandKind Kind; |
@@ -116,6 +117,7 @@ protected: |
Vars = NULL; |
NumVars = 0; |
} |
+ Constant(Constant &&C) = default; |
virtual ~Constant() {} |
// PoolEntryID is an integer that uniquely identifies the constant |
// within its constant pool. It is used for building the constant |
@@ -136,6 +138,7 @@ public: |
return new (Ctx->allocate<ConstantPrimitive>()) |
ConstantPrimitive(Ty, Value, PoolEntryID); |
} |
+ ConstantPrimitive(ConstantPrimitive &&C) = default; |
T getValue() const { return Value; } |
using Constant::emit; |
// The target needs to implement this for each ConstantPrimitive |
@@ -206,6 +209,7 @@ public: |
return new (Ctx->allocate<ConstantRelocatable>()) ConstantRelocatable( |
Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling, PoolEntryID); |
} |
+ ConstantRelocatable(ConstantRelocatable &&C) = default; |
int64_t getOffset() const { return Offset; } |
IceString getName() const { return Name; } |
void setSuppressMangling(bool Value) { SuppressMangling = Value; } |
@@ -243,6 +247,7 @@ public: |
uint32_t PoolEntryID) { |
return new (Ctx->allocate<ConstantUndef>()) ConstantUndef(Ty, PoolEntryID); |
} |
+ ConstantUndef(ConstantUndef &&C) = default; |
using Constant::emit; |
using Constant::dump; |
@@ -352,6 +357,7 @@ public: |
return new (Func->allocate<Variable>()) |
Variable(kVariable, Ty, Index, Name); |
} |
+ Variable(Variable &&V) = default; |
SizeT getIndex() const { return Number; } |
IceString getName() const; |