[llvm] r284972 - [RDF] Add default move constructors/assignment operators
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 06:15:21 PDT 2016
Author: kparzysz
Date: Mon Oct 24 08:15:20 2016
New Revision: 284972
URL: http://llvm.org/viewvc/llvm-project?rev=284972&view=rev
Log:
[RDF] Add default move constructors/assignment operators
Modified:
llvm/trunk/lib/Target/Hexagon/RDFGraph.h
Modified: llvm/trunk/lib/Target/Hexagon/RDFGraph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/RDFGraph.h?rev=284972&r1=284971&r2=284972&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/RDFGraph.h (original)
+++ llvm/trunk/lib/Target/Hexagon/RDFGraph.h Mon Oct 24 08:15:20 2016
@@ -329,7 +329,9 @@ namespace rdf {
NodeAddr() : Addr(nullptr), Id(0) {}
NodeAddr(T A, NodeId I) : Addr(A), Id(I) {}
NodeAddr(const NodeAddr&) = default;
+ NodeAddr(NodeAddr&&) = default;
NodeAddr &operator= (const NodeAddr&) = default;
+ NodeAddr &operator= (NodeAddr&&) = default;
bool operator== (const NodeAddr<T> &NA) const {
assert((Addr == NA.Addr) == (Id == NA.Id));
@@ -407,8 +409,10 @@ namespace rdf {
RegisterRef() : RegisterRef(0) {}
explicit RegisterRef(RegisterId R, LaneBitmask M = ~LaneBitmask(0))
: Reg(R), Mask(R != 0 ? M : 0) {}
- RegisterRef(const RegisterRef &RR) = default;
- RegisterRef &operator= (const RegisterRef &RR) = default;
+ RegisterRef(const RegisterRef&) = default;
+ RegisterRef(RegisterRef&&) = default;
+ RegisterRef &operator= (const RegisterRef&) = default;
+ RegisterRef &operator= (RegisterRef&&) = default;
operator bool() const { return Reg != 0 && Mask != LaneBitmask(0); }
bool operator== (const RegisterRef &RR) const {
return Reg == RR.Reg && Mask == RR.Mask;
More information about the llvm-commits
mailing list