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

Unified Diff: src/IceOperand.h

Issue 512933006: LLVM 3.5 merge: Subzero (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 6 years, 3 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.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceTranslator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698