Commit 0795ba01 by Jim Stichnoth

Subzero: Remove LLVM_DELETED_FUNCTION.

sed -i 's/LLVM_DELETED_FUNCTION/= delete/' src/*.{h,cpp} BUG= https://codereview.chromium.org/512933006/ R=jfb@chromium.org Review URL: https://codereview.chromium.org/619983002
parent f44f371b
...@@ -184,8 +184,8 @@ private: ...@@ -184,8 +184,8 @@ private:
// spurious validation failures. // spurious validation failures.
const CfgNode *CurrentNode; const CfgNode *CurrentNode;
Cfg(const Cfg &) LLVM_DELETED_FUNCTION; Cfg(const Cfg &) = delete;
Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; Cfg &operator=(const Cfg &) = delete;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -71,8 +71,8 @@ public: ...@@ -71,8 +71,8 @@ public:
private: private:
CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name);
CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION; CfgNode(const CfgNode &) = delete;
CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION; CfgNode &operator=(const CfgNode &) = delete;
Cfg *const Func; Cfg *const Func;
const SizeT Number; // label index const SizeT Number; // label index
IceString Name; // for dumping only IceString Name; // for dumping only
......
...@@ -34,8 +34,8 @@ private: ...@@ -34,8 +34,8 @@ private:
llvm::Module *Mod; llvm::Module *Mod;
// Converts functions to ICE, and then machine code. // Converts functions to ICE, and then machine code.
void convertFunctions(); void convertFunctions();
Converter(const Converter &) LLVM_DELETED_FUNCTION; Converter(const Converter &) = delete;
Converter &operator=(const Converter &) LLVM_DELETED_FUNCTION; Converter &operator=(const Converter &) = delete;
}; };
} }
......
...@@ -35,8 +35,8 @@ namespace Ice { ...@@ -35,8 +35,8 @@ namespace Ice {
// KeyTypeHasFP with C++11. // KeyTypeHasFP with C++11.
template <typename KeyType, typename ValueType, bool KeyTypeHasFP = false> template <typename KeyType, typename ValueType, bool KeyTypeHasFP = false>
class TypePool { class TypePool {
TypePool(const TypePool &) LLVM_DELETED_FUNCTION; TypePool(const TypePool &) = delete;
TypePool &operator=(const TypePool &) LLVM_DELETED_FUNCTION; TypePool &operator=(const TypePool &) = delete;
public: public:
TypePool() : NextPoolID(0) {} TypePool() : NextPoolID(0) {}
...@@ -75,8 +75,8 @@ private: ...@@ -75,8 +75,8 @@ private:
// UndefPool maps ICE types to the corresponding ConstantUndef values. // UndefPool maps ICE types to the corresponding ConstantUndef values.
class UndefPool { class UndefPool {
UndefPool(const UndefPool &) LLVM_DELETED_FUNCTION; UndefPool(const UndefPool &) = delete;
UndefPool &operator=(const UndefPool &) LLVM_DELETED_FUNCTION; UndefPool &operator=(const UndefPool &) = delete;
public: public:
UndefPool() : NextPoolID(0) {} UndefPool() : NextPoolID(0) {}
...@@ -99,8 +99,8 @@ private: ...@@ -99,8 +99,8 @@ private:
// The global constant pool bundles individual pools of each type of // The global constant pool bundles individual pools of each type of
// interest. // interest.
class ConstantPool { class ConstantPool {
ConstantPool(const ConstantPool &) LLVM_DELETED_FUNCTION; ConstantPool(const ConstantPool &) = delete;
ConstantPool &operator=(const ConstantPool &) LLVM_DELETED_FUNCTION; ConstantPool &operator=(const ConstantPool &) = delete;
public: public:
ConstantPool() {} ConstantPool() {}
......
...@@ -173,8 +173,8 @@ private: ...@@ -173,8 +173,8 @@ private:
CodeStats StatsFunction; CodeStats StatsFunction;
CodeStats StatsCumulative; CodeStats StatsCumulative;
std::unique_ptr<class TimerStack> Timers; std::unique_ptr<class TimerStack> Timers;
GlobalContext(const GlobalContext &) LLVM_DELETED_FUNCTION; GlobalContext(const GlobalContext &) = delete;
GlobalContext &operator=(const GlobalContext &) LLVM_DELETED_FUNCTION; GlobalContext &operator=(const GlobalContext &) = delete;
// Private helpers for mangleName() // Private helpers for mangleName()
typedef llvm::SmallVector<char, 32> ManglerVector; typedef llvm::SmallVector<char, 32> ManglerVector;
...@@ -185,8 +185,8 @@ private: ...@@ -185,8 +185,8 @@ private:
// pushes a marker, and the destructor pops it. This is for // pushes a marker, and the destructor pops it. This is for
// convenient timing of regions of code. // convenient timing of regions of code.
class TimerMarker { class TimerMarker {
TimerMarker(const TimerMarker &) LLVM_DELETED_FUNCTION; TimerMarker(const TimerMarker &) = delete;
TimerMarker &operator=(const TimerMarker &) LLVM_DELETED_FUNCTION; TimerMarker &operator=(const TimerMarker &) = delete;
public: public:
TimerMarker(TimerIdT ID, GlobalContext *Ctx) TimerMarker(TimerIdT ID, GlobalContext *Ctx)
......
...@@ -165,13 +165,13 @@ protected: ...@@ -165,13 +165,13 @@ protected:
LREndedBits LiveRangesEnded; LREndedBits LiveRangesEnded;
private: private:
Inst(const Inst &) LLVM_DELETED_FUNCTION; Inst(const Inst &) = delete;
Inst &operator=(const Inst &) LLVM_DELETED_FUNCTION; Inst &operator=(const Inst &) = delete;
}; };
class InstHighLevel : public Inst { class InstHighLevel : public Inst {
InstHighLevel(const InstHighLevel &) LLVM_DELETED_FUNCTION; InstHighLevel(const InstHighLevel &) = delete;
InstHighLevel &operator=(const InstHighLevel &) LLVM_DELETED_FUNCTION; InstHighLevel &operator=(const InstHighLevel &) = delete;
protected: protected:
InstHighLevel(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest) InstHighLevel(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest)
...@@ -203,8 +203,8 @@ public: ...@@ -203,8 +203,8 @@ public:
private: private:
InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t AlignInBytes, InstAlloca(Cfg *Func, Operand *ByteCount, uint32_t AlignInBytes,
Variable *Dest); Variable *Dest);
InstAlloca(const InstAlloca &) LLVM_DELETED_FUNCTION; InstAlloca(const InstAlloca &) = delete;
InstAlloca &operator=(const InstAlloca &) LLVM_DELETED_FUNCTION; InstAlloca &operator=(const InstAlloca &) = delete;
~InstAlloca() override {} ~InstAlloca() override {}
const uint32_t AlignInBytes; const uint32_t AlignInBytes;
}; };
...@@ -236,8 +236,8 @@ public: ...@@ -236,8 +236,8 @@ public:
private: private:
InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1, InstArithmetic(Cfg *Func, OpKind Op, Variable *Dest, Operand *Source1,
Operand *Source2); Operand *Source2);
InstArithmetic(const InstArithmetic &) LLVM_DELETED_FUNCTION; InstArithmetic(const InstArithmetic &) = delete;
InstArithmetic &operator=(const InstArithmetic &) LLVM_DELETED_FUNCTION; InstArithmetic &operator=(const InstArithmetic &) = delete;
~InstArithmetic() override {} ~InstArithmetic() override {}
const OpKind Op; const OpKind Op;
...@@ -261,8 +261,8 @@ public: ...@@ -261,8 +261,8 @@ public:
private: private:
InstAssign(Cfg *Func, Variable *Dest, Operand *Source); InstAssign(Cfg *Func, Variable *Dest, Operand *Source);
InstAssign(const InstAssign &) LLVM_DELETED_FUNCTION; InstAssign(const InstAssign &) = delete;
InstAssign &operator=(const InstAssign &) LLVM_DELETED_FUNCTION; InstAssign &operator=(const InstAssign &) = delete;
~InstAssign() override {} ~InstAssign() override {}
}; };
...@@ -301,8 +301,8 @@ private: ...@@ -301,8 +301,8 @@ private:
InstBr(Cfg *Func, Operand *Source, CfgNode *TargetTrue, CfgNode *TargetFalse); InstBr(Cfg *Func, Operand *Source, CfgNode *TargetTrue, CfgNode *TargetFalse);
// Unconditional branch // Unconditional branch
InstBr(Cfg *Func, CfgNode *Target); InstBr(Cfg *Func, CfgNode *Target);
InstBr(const InstBr &) LLVM_DELETED_FUNCTION; InstBr(const InstBr &) = delete;
InstBr &operator=(const InstBr &) LLVM_DELETED_FUNCTION; InstBr &operator=(const InstBr &) = delete;
~InstBr() override {} ~InstBr() override {}
CfgNode *const TargetFalse; // Doubles as unconditional branch target CfgNode *const TargetFalse; // Doubles as unconditional branch target
...@@ -343,8 +343,8 @@ protected: ...@@ -343,8 +343,8 @@ protected:
private: private:
bool HasTailCall; bool HasTailCall;
InstCall(const InstCall &) LLVM_DELETED_FUNCTION; InstCall(const InstCall &) = delete;
InstCall &operator=(const InstCall &) LLVM_DELETED_FUNCTION; InstCall &operator=(const InstCall &) = delete;
}; };
// Cast instruction (a.k.a. conversion operation). // Cast instruction (a.k.a. conversion operation).
...@@ -368,8 +368,8 @@ public: ...@@ -368,8 +368,8 @@ public:
private: private:
InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source); InstCast(Cfg *Func, OpKind CastKind, Variable *Dest, Operand *Source);
InstCast(const InstCast &) LLVM_DELETED_FUNCTION; InstCast(const InstCast &) = delete;
InstCast &operator=(const InstCast &) LLVM_DELETED_FUNCTION; InstCast &operator=(const InstCast &) = delete;
~InstCast() override {} ~InstCast() override {}
const OpKind CastKind; const OpKind CastKind;
}; };
...@@ -391,9 +391,8 @@ public: ...@@ -391,9 +391,8 @@ public:
private: private:
InstExtractElement(Cfg *Func, Variable *Dest, Operand *Source1, InstExtractElement(Cfg *Func, Variable *Dest, Operand *Source1,
Operand *Source2); Operand *Source2);
InstExtractElement(const InstExtractElement &) LLVM_DELETED_FUNCTION; InstExtractElement(const InstExtractElement &) = delete;
InstExtractElement & InstExtractElement &operator=(const InstExtractElement &) = delete;
operator=(const InstExtractElement &) LLVM_DELETED_FUNCTION;
~InstExtractElement() override {} ~InstExtractElement() override {}
}; };
...@@ -420,8 +419,8 @@ public: ...@@ -420,8 +419,8 @@ public:
private: private:
InstFcmp(Cfg *Func, FCond Condition, Variable *Dest, Operand *Source1, InstFcmp(Cfg *Func, FCond Condition, Variable *Dest, Operand *Source1,
Operand *Source2); Operand *Source2);
InstFcmp(const InstFcmp &) LLVM_DELETED_FUNCTION; InstFcmp(const InstFcmp &) = delete;
InstFcmp &operator=(const InstFcmp &) LLVM_DELETED_FUNCTION; InstFcmp &operator=(const InstFcmp &) = delete;
~InstFcmp() override {} ~InstFcmp() override {}
const FCond Condition; const FCond Condition;
}; };
...@@ -449,8 +448,8 @@ public: ...@@ -449,8 +448,8 @@ public:
private: private:
InstIcmp(Cfg *Func, ICond Condition, Variable *Dest, Operand *Source1, InstIcmp(Cfg *Func, ICond Condition, Variable *Dest, Operand *Source1,
Operand *Source2); Operand *Source2);
InstIcmp(const InstIcmp &) LLVM_DELETED_FUNCTION; InstIcmp(const InstIcmp &) = delete;
InstIcmp &operator=(const InstIcmp &) LLVM_DELETED_FUNCTION; InstIcmp &operator=(const InstIcmp &) = delete;
~InstIcmp() override {} ~InstIcmp() override {}
const ICond Condition; const ICond Condition;
}; };
...@@ -472,8 +471,8 @@ public: ...@@ -472,8 +471,8 @@ public:
private: private:
InstInsertElement(Cfg *Func, Variable *Dest, Operand *Source1, InstInsertElement(Cfg *Func, Variable *Dest, Operand *Source1,
Operand *Source2, Operand *Source3); Operand *Source2, Operand *Source3);
InstInsertElement(const InstInsertElement &) LLVM_DELETED_FUNCTION; InstInsertElement(const InstInsertElement &) = delete;
InstInsertElement &operator=(const InstInsertElement &) LLVM_DELETED_FUNCTION; InstInsertElement &operator=(const InstInsertElement &) = delete;
~InstInsertElement() override {} ~InstInsertElement() override {}
}; };
...@@ -499,8 +498,8 @@ private: ...@@ -499,8 +498,8 @@ private:
: InstCall(Func, NumArgs, Dest, CallTarget, false, Info.HasSideEffects, : InstCall(Func, NumArgs, Dest, CallTarget, false, Info.HasSideEffects,
Inst::IntrinsicCall), Inst::IntrinsicCall),
Info(Info) {} Info(Info) {}
InstIntrinsicCall(const InstIntrinsicCall &) LLVM_DELETED_FUNCTION; InstIntrinsicCall(const InstIntrinsicCall &) = delete;
InstIntrinsicCall &operator=(const InstIntrinsicCall &) LLVM_DELETED_FUNCTION; InstIntrinsicCall &operator=(const InstIntrinsicCall &) = delete;
~InstIntrinsicCall() override {} ~InstIntrinsicCall() override {}
const Intrinsics::IntrinsicInfo Info; const Intrinsics::IntrinsicInfo Info;
}; };
...@@ -521,8 +520,8 @@ public: ...@@ -521,8 +520,8 @@ public:
private: private:
InstLoad(Cfg *Func, Variable *Dest, Operand *SourceAddr); InstLoad(Cfg *Func, Variable *Dest, Operand *SourceAddr);
InstLoad(const InstLoad &) LLVM_DELETED_FUNCTION; InstLoad(const InstLoad &) = delete;
InstLoad &operator=(const InstLoad &) LLVM_DELETED_FUNCTION; InstLoad &operator=(const InstLoad &) = delete;
~InstLoad() override {} ~InstLoad() override {}
}; };
...@@ -543,8 +542,8 @@ public: ...@@ -543,8 +542,8 @@ public:
private: private:
InstPhi(Cfg *Func, SizeT MaxSrcs, Variable *Dest); InstPhi(Cfg *Func, SizeT MaxSrcs, Variable *Dest);
InstPhi(const InstPhi &) LLVM_DELETED_FUNCTION; InstPhi(const InstPhi &) = delete;
InstPhi &operator=(const InstPhi &) LLVM_DELETED_FUNCTION; InstPhi &operator=(const InstPhi &) = delete;
void destroy(Cfg *Func) override { void destroy(Cfg *Func) override {
Func->deallocateArrayOf<CfgNode *>(Labels); Func->deallocateArrayOf<CfgNode *>(Labels);
Inst::destroy(Func); Inst::destroy(Func);
...@@ -576,8 +575,8 @@ public: ...@@ -576,8 +575,8 @@ public:
private: private:
InstRet(Cfg *Func, Operand *RetValue); InstRet(Cfg *Func, Operand *RetValue);
InstRet(const InstRet &) LLVM_DELETED_FUNCTION; InstRet(const InstRet &) = delete;
InstRet &operator=(const InstRet &) LLVM_DELETED_FUNCTION; InstRet &operator=(const InstRet &) = delete;
~InstRet() override {} ~InstRet() override {}
}; };
...@@ -598,8 +597,8 @@ public: ...@@ -598,8 +597,8 @@ public:
private: private:
InstSelect(Cfg *Func, Variable *Dest, Operand *Condition, Operand *Source1, InstSelect(Cfg *Func, Variable *Dest, Operand *Condition, Operand *Source1,
Operand *Source2); Operand *Source2);
InstSelect(const InstSelect &) LLVM_DELETED_FUNCTION; InstSelect(const InstSelect &) = delete;
InstSelect &operator=(const InstSelect &) LLVM_DELETED_FUNCTION; InstSelect &operator=(const InstSelect &) = delete;
~InstSelect() override {} ~InstSelect() override {}
}; };
...@@ -620,8 +619,8 @@ public: ...@@ -620,8 +619,8 @@ public:
private: private:
InstStore(Cfg *Func, Operand *Data, Operand *Addr); InstStore(Cfg *Func, Operand *Data, Operand *Addr);
InstStore(const InstStore &) LLVM_DELETED_FUNCTION; InstStore(const InstStore &) = delete;
InstStore &operator=(const InstStore &) LLVM_DELETED_FUNCTION; InstStore &operator=(const InstStore &) = delete;
~InstStore() override {} ~InstStore() override {}
}; };
...@@ -652,8 +651,8 @@ public: ...@@ -652,8 +651,8 @@ public:
private: private:
InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, CfgNode *LabelDefault); InstSwitch(Cfg *Func, SizeT NumCases, Operand *Source, CfgNode *LabelDefault);
InstSwitch(const InstSwitch &) LLVM_DELETED_FUNCTION; InstSwitch(const InstSwitch &) = delete;
InstSwitch &operator=(const InstSwitch &) LLVM_DELETED_FUNCTION; InstSwitch &operator=(const InstSwitch &) = delete;
void destroy(Cfg *Func) override { void destroy(Cfg *Func) override {
Func->deallocateArrayOf<uint64_t>(Values); Func->deallocateArrayOf<uint64_t>(Values);
Func->deallocateArrayOf<CfgNode *>(Labels); Func->deallocateArrayOf<CfgNode *>(Labels);
...@@ -682,8 +681,8 @@ public: ...@@ -682,8 +681,8 @@ public:
private: private:
InstUnreachable(Cfg *Func); InstUnreachable(Cfg *Func);
InstUnreachable(const InstUnreachable &) LLVM_DELETED_FUNCTION; InstUnreachable(const InstUnreachable &) = delete;
InstUnreachable &operator=(const InstUnreachable &) LLVM_DELETED_FUNCTION; InstUnreachable &operator=(const InstUnreachable &) = delete;
~InstUnreachable() override {} ~InstUnreachable() override {}
}; };
...@@ -711,8 +710,8 @@ public: ...@@ -711,8 +710,8 @@ public:
private: private:
InstFakeDef(Cfg *Func, Variable *Dest, Variable *Src); InstFakeDef(Cfg *Func, Variable *Dest, Variable *Src);
InstFakeDef(const InstFakeDef &) LLVM_DELETED_FUNCTION; InstFakeDef(const InstFakeDef &) = delete;
InstFakeDef &operator=(const InstFakeDef &) LLVM_DELETED_FUNCTION; InstFakeDef &operator=(const InstFakeDef &) = delete;
~InstFakeDef() override {} ~InstFakeDef() override {}
}; };
...@@ -733,8 +732,8 @@ public: ...@@ -733,8 +732,8 @@ public:
private: private:
InstFakeUse(Cfg *Func, Variable *Src); InstFakeUse(Cfg *Func, Variable *Src);
InstFakeUse(const InstFakeUse &) LLVM_DELETED_FUNCTION; InstFakeUse(const InstFakeUse &) = delete;
InstFakeUse &operator=(const InstFakeUse &) LLVM_DELETED_FUNCTION; InstFakeUse &operator=(const InstFakeUse &) = delete;
~InstFakeUse() override {} ~InstFakeUse() override {}
}; };
...@@ -762,8 +761,8 @@ public: ...@@ -762,8 +761,8 @@ public:
private: private:
InstFakeKill(Cfg *Func, const VarList &KilledRegs, const Inst *Linked); InstFakeKill(Cfg *Func, const VarList &KilledRegs, const Inst *Linked);
InstFakeKill(const InstFakeKill &) LLVM_DELETED_FUNCTION; InstFakeKill(const InstFakeKill &) = delete;
InstFakeKill &operator=(const InstFakeKill &) LLVM_DELETED_FUNCTION; InstFakeKill &operator=(const InstFakeKill &) = delete;
~InstFakeKill() override {} ~InstFakeKill() override {}
// This instruction is ignored if Linked->isDeleted() is true. // This instruction is ignored if Linked->isDeleted() is true.
...@@ -773,8 +772,8 @@ private: ...@@ -773,8 +772,8 @@ private:
// The Target instruction is the base class for all target-specific // The Target instruction is the base class for all target-specific
// instructions. // instructions.
class InstTarget : public Inst { class InstTarget : public Inst {
InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; InstTarget(const InstTarget &) = delete;
InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; InstTarget &operator=(const InstTarget &) = delete;
public: public:
uint32_t getEmitInstCount() const override { return 1; } uint32_t getEmitInstCount() const override { return 1; }
......
...@@ -159,8 +159,8 @@ private: ...@@ -159,8 +159,8 @@ private:
typedef std::map<IceString, FullIntrinsicInfo> IntrinsicMap; typedef std::map<IceString, FullIntrinsicInfo> IntrinsicMap;
IntrinsicMap Map; IntrinsicMap Map;
Intrinsics(const Intrinsics &) LLVM_DELETED_FUNCTION; Intrinsics(const Intrinsics &) = delete;
Intrinsics &operator=(const Intrinsics &) LLVM_DELETED_FUNCTION; Intrinsics &operator=(const Intrinsics &) = delete;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -46,8 +46,8 @@ public: ...@@ -46,8 +46,8 @@ public:
private: private:
// TODO: Disable these constructors when Liveness::Nodes is no // TODO: Disable these constructors when Liveness::Nodes is no
// longer an STL container. // longer an STL container.
// LivenessNode(const LivenessNode &) LLVM_DELETED_FUNCTION; // LivenessNode(const LivenessNode &) = delete;
// LivenessNode &operator=(const LivenessNode &) LLVM_DELETED_FUNCTION; // LivenessNode &operator=(const LivenessNode &) = delete;
}; };
class Liveness { class Liveness {
...@@ -91,8 +91,8 @@ private: ...@@ -91,8 +91,8 @@ private:
std::vector<Variable *> LiveToVarMap; std::vector<Variable *> LiveToVarMap;
// LiveRanges maps a Variable::Number to its live range. // LiveRanges maps a Variable::Number to its live range.
std::vector<LiveRange> LiveRanges; std::vector<LiveRange> LiveRanges;
Liveness(const Liveness &) LLVM_DELETED_FUNCTION; Liveness(const Liveness &) = delete;
Liveness &operator=(const Liveness &) LLVM_DELETED_FUNCTION; Liveness &operator=(const Liveness &) = delete;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -86,8 +86,8 @@ protected: ...@@ -86,8 +86,8 @@ protected:
Variable **Vars; Variable **Vars;
private: private:
Operand(const Operand &) LLVM_DELETED_FUNCTION; Operand(const Operand &) = delete;
Operand &operator=(const Operand &) LLVM_DELETED_FUNCTION; Operand &operator=(const Operand &) = delete;
}; };
template<class StreamType> template<class StreamType>
...@@ -124,8 +124,8 @@ protected: ...@@ -124,8 +124,8 @@ protected:
const uint32_t PoolEntryID; const uint32_t PoolEntryID;
private: private:
Constant(const Constant &) LLVM_DELETED_FUNCTION; Constant(const Constant &) = delete;
Constant &operator=(const Constant &) LLVM_DELETED_FUNCTION; Constant &operator=(const Constant &) = delete;
}; };
// ConstantPrimitive<> wraps a primitive type. // ConstantPrimitive<> wraps a primitive type.
...@@ -152,8 +152,8 @@ public: ...@@ -152,8 +152,8 @@ public:
private: private:
ConstantPrimitive(Type Ty, T Value, uint32_t PoolEntryID) ConstantPrimitive(Type Ty, T Value, uint32_t PoolEntryID)
: Constant(K, Ty, PoolEntryID), Value(Value) {} : Constant(K, Ty, PoolEntryID), Value(Value) {}
ConstantPrimitive(const ConstantPrimitive &) LLVM_DELETED_FUNCTION; ConstantPrimitive(const ConstantPrimitive &) = delete;
ConstantPrimitive &operator=(const ConstantPrimitive &) LLVM_DELETED_FUNCTION; ConstantPrimitive &operator=(const ConstantPrimitive &) = delete;
~ConstantPrimitive() override {} ~ConstantPrimitive() override {}
const T Value; const T Value;
}; };
...@@ -180,7 +180,7 @@ template <> inline void ConstantInteger64::dump(const Cfg *, Ostream &Str) const ...@@ -180,7 +180,7 @@ template <> inline void ConstantInteger64::dump(const Cfg *, Ostream &Str) const
// ConstantRelocatable can fit into the global constant pool // ConstantRelocatable can fit into the global constant pool
// template mechanism. // template mechanism.
class RelocatableTuple { class RelocatableTuple {
RelocatableTuple &operator=(const RelocatableTuple &) LLVM_DELETED_FUNCTION; RelocatableTuple &operator=(const RelocatableTuple &) = delete;
public: public:
RelocatableTuple(const int64_t Offset, const IceString &Name, RelocatableTuple(const int64_t Offset, const IceString &Name,
...@@ -226,9 +226,8 @@ private: ...@@ -226,9 +226,8 @@ private:
bool SuppressMangling, uint32_t PoolEntryID) bool SuppressMangling, uint32_t PoolEntryID)
: Constant(kConstRelocatable, Ty, PoolEntryID), Offset(Offset), : Constant(kConstRelocatable, Ty, PoolEntryID), Offset(Offset),
Name(Name), SuppressMangling(SuppressMangling) {} Name(Name), SuppressMangling(SuppressMangling) {}
ConstantRelocatable(const ConstantRelocatable &) LLVM_DELETED_FUNCTION; ConstantRelocatable(const ConstantRelocatable &) = delete;
ConstantRelocatable & ConstantRelocatable &operator=(const ConstantRelocatable &) = delete;
operator=(const ConstantRelocatable &) LLVM_DELETED_FUNCTION;
~ConstantRelocatable() override {} ~ConstantRelocatable() override {}
const int64_t Offset; // fixed offset to add const int64_t Offset; // fixed offset to add
const IceString Name; // optional for debug/dump const IceString Name; // optional for debug/dump
...@@ -258,8 +257,8 @@ public: ...@@ -258,8 +257,8 @@ public:
private: private:
ConstantUndef(Type Ty, uint32_t PoolEntryID) ConstantUndef(Type Ty, uint32_t PoolEntryID)
: Constant(kConstUndef, Ty, PoolEntryID) {} : Constant(kConstUndef, Ty, PoolEntryID) {}
ConstantUndef(const ConstantUndef &) LLVM_DELETED_FUNCTION; ConstantUndef(const ConstantUndef &) = delete;
ConstantUndef &operator=(const ConstantUndef &) LLVM_DELETED_FUNCTION; ConstantUndef &operator=(const ConstantUndef &) = delete;
~ConstantUndef() override {} ~ConstantUndef() override {}
}; };
...@@ -344,8 +343,8 @@ Ostream &operator<<(Ostream &Str, const LiveRange &L); ...@@ -344,8 +343,8 @@ Ostream &operator<<(Ostream &Str, const LiveRange &L);
// stack-allocated. If it is register-allocated, it will ultimately // stack-allocated. If it is register-allocated, it will ultimately
// have a non-negative RegNum field. // have a non-negative RegNum field.
class Variable : public Operand { class Variable : public Operand {
Variable(const Variable &) LLVM_DELETED_FUNCTION; Variable(const Variable &) = delete;
Variable &operator=(const Variable &) LLVM_DELETED_FUNCTION; Variable &operator=(const Variable &) = delete;
Variable(Variable &&V) = default; Variable(Variable &&V) = default;
public: public:
...@@ -499,7 +498,7 @@ public: ...@@ -499,7 +498,7 @@ public:
void markDef(const Inst *Instr, const CfgNode *Node); void markDef(const Inst *Instr, const CfgNode *Node);
private: private:
VariableTracking &operator=(const VariableTracking &) LLVM_DELETED_FUNCTION; VariableTracking &operator=(const VariableTracking &) = delete;
MultiDefState MultiDef; MultiDefState MultiDef;
MultiBlockState MultiBlock; MultiBlockState MultiBlock;
const CfgNode *SingleUseNode; const CfgNode *SingleUseNode;
...@@ -560,8 +559,8 @@ private: ...@@ -560,8 +559,8 @@ private:
const Cfg *Func; const Cfg *Func;
std::vector<VariableTracking> Metadata; std::vector<VariableTracking> Metadata;
const static InstDefList NoDefinitions; const static InstDefList NoDefinitions;
VariablesMetadata(const VariablesMetadata &) LLVM_DELETED_FUNCTION; VariablesMetadata(const VariablesMetadata &) = delete;
VariablesMetadata &operator=(const VariablesMetadata &) LLVM_DELETED_FUNCTION; VariablesMetadata &operator=(const VariablesMetadata &) = delete;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -27,9 +27,8 @@ public: ...@@ -27,9 +27,8 @@ public:
uint64_t next(uint64_t Max); uint64_t next(uint64_t Max);
private: private:
RandomNumberGenerator(const RandomNumberGenerator &) LLVM_DELETED_FUNCTION; RandomNumberGenerator(const RandomNumberGenerator &) = delete;
RandomNumberGenerator & RandomNumberGenerator &operator=(const RandomNumberGenerator &) = delete;
operator=(const RandomNumberGenerator &) LLVM_DELETED_FUNCTION;
uint64_t State; uint64_t State;
}; };
...@@ -44,10 +43,9 @@ public: ...@@ -44,10 +43,9 @@ public:
RandomNumberGeneratorWrapper(RandomNumberGenerator &RNG) : RNG(RNG) {} RandomNumberGeneratorWrapper(RandomNumberGenerator &RNG) : RNG(RNG) {}
private: private:
RandomNumberGeneratorWrapper(const RandomNumberGeneratorWrapper &) RandomNumberGeneratorWrapper(const RandomNumberGeneratorWrapper &) = delete;
LLVM_DELETED_FUNCTION;
RandomNumberGeneratorWrapper & RandomNumberGeneratorWrapper &
operator=(const RandomNumberGeneratorWrapper &) LLVM_DELETED_FUNCTION; operator=(const RandomNumberGeneratorWrapper &) = delete;
RandomNumberGenerator &RNG; RandomNumberGenerator &RNG;
}; };
......
...@@ -43,8 +43,8 @@ public: ...@@ -43,8 +43,8 @@ public:
void dump(const Cfg *Func) const; void dump(const Cfg *Func) const;
private: private:
// LiveRangeWrapper(const LiveRangeWrapper &) LLVM_DELETED_FUNCTION; // LiveRangeWrapper(const LiveRangeWrapper &) = delete;
LiveRangeWrapper &operator=(const LiveRangeWrapper &) LLVM_DELETED_FUNCTION; LiveRangeWrapper &operator=(const LiveRangeWrapper &) = delete;
}; };
class LinearScan { class LinearScan {
...@@ -72,8 +72,8 @@ private: ...@@ -72,8 +72,8 @@ private:
typedef std::list<LiveRangeWrapper> UnorderedRanges; typedef std::list<LiveRangeWrapper> UnorderedRanges;
OrderedRanges Unhandled; OrderedRanges Unhandled;
UnorderedRanges Active, Inactive, Handled; UnorderedRanges Active, Inactive, Handled;
LinearScan(const LinearScan &) LLVM_DELETED_FUNCTION; LinearScan(const LinearScan &) = delete;
LinearScan &operator=(const LinearScan &) LLVM_DELETED_FUNCTION; LinearScan &operator=(const LinearScan &) = delete;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -86,8 +86,8 @@ private: ...@@ -86,8 +86,8 @@ private:
void skipDeleted(InstList::iterator &I) const; void skipDeleted(InstList::iterator &I) const;
void advanceForward(InstList::iterator &I) const; void advanceForward(InstList::iterator &I) const;
void advanceBackward(InstList::iterator &I) const; void advanceBackward(InstList::iterator &I) const;
LoweringContext(const LoweringContext &) LLVM_DELETED_FUNCTION; LoweringContext(const LoweringContext &) = delete;
LoweringContext &operator=(const LoweringContext &) LLVM_DELETED_FUNCTION; LoweringContext &operator=(const LoweringContext &) = delete;
}; };
class TargetLowering { class TargetLowering {
...@@ -235,8 +235,8 @@ protected: ...@@ -235,8 +235,8 @@ protected:
LoweringContext Context; LoweringContext Context;
private: private:
TargetLowering(const TargetLowering &) LLVM_DELETED_FUNCTION; TargetLowering(const TargetLowering &) = delete;
TargetLowering &operator=(const TargetLowering &) LLVM_DELETED_FUNCTION; TargetLowering &operator=(const TargetLowering &) = delete;
}; };
// TargetGlobalInitLowering is used for "lowering" global // TargetGlobalInitLowering is used for "lowering" global
...@@ -258,10 +258,9 @@ protected: ...@@ -258,10 +258,9 @@ protected:
GlobalContext *Ctx; GlobalContext *Ctx;
private: private:
TargetGlobalInitLowering(const TargetGlobalInitLowering &) TargetGlobalInitLowering(const TargetGlobalInitLowering &) = delete;
LLVM_DELETED_FUNCTION; TargetGlobalInitLowering &operator=(const TargetGlobalInitLowering &) =
TargetGlobalInitLowering & delete;
operator=(const TargetGlobalInitLowering &) LLVM_DELETED_FUNCTION;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -475,8 +475,8 @@ protected: ...@@ -475,8 +475,8 @@ protected:
static IceString RegNames[]; static IceString RegNames[];
private: private:
TargetX8632(const TargetX8632 &) LLVM_DELETED_FUNCTION; TargetX8632(const TargetX8632 &) = delete;
TargetX8632 &operator=(const TargetX8632 &) LLVM_DELETED_FUNCTION; TargetX8632 &operator=(const TargetX8632 &) = delete;
~TargetX8632() override {} ~TargetX8632() override {}
template <typename T> void emitConstantPool() const; template <typename T> void emitConstantPool() const;
}; };
...@@ -494,9 +494,8 @@ protected: ...@@ -494,9 +494,8 @@ protected:
TargetGlobalInitX8632(GlobalContext *Ctx); TargetGlobalInitX8632(GlobalContext *Ctx);
private: private:
TargetGlobalInitX8632(const TargetGlobalInitX8632 &) LLVM_DELETED_FUNCTION; TargetGlobalInitX8632(const TargetGlobalInitX8632 &) = delete;
TargetGlobalInitX8632 & TargetGlobalInitX8632 &operator=(const TargetGlobalInitX8632 &) = delete;
operator=(const TargetGlobalInitX8632 &) LLVM_DELETED_FUNCTION;
~TargetGlobalInitX8632() override {} ~TargetGlobalInitX8632() override {}
}; };
......
...@@ -38,8 +38,8 @@ public: ...@@ -38,8 +38,8 @@ public:
}; };
class TimerStack { class TimerStack {
TimerStack(const TimerStack &) LLVM_DELETED_FUNCTION; TimerStack(const TimerStack &) = delete;
TimerStack &operator=(const TimerStack &) LLVM_DELETED_FUNCTION; TimerStack &operator=(const TimerStack &) = delete;
public: public:
TimerStack(const IceString &TopLevelName); TimerStack(const IceString &TopLevelName);
......
...@@ -78,8 +78,8 @@ protected: ...@@ -78,8 +78,8 @@ protected:
std::unique_ptr<Cfg> Func; std::unique_ptr<Cfg> Func;
private: private:
Translator(const Translator &) LLVM_DELETED_FUNCTION; Translator(const Translator &) = delete;
Translator &operator=(const Translator &) LLVM_DELETED_FUNCTION; Translator &operator=(const Translator &) = delete;
}; };
} }
......
...@@ -28,8 +28,8 @@ namespace Ice { ...@@ -28,8 +28,8 @@ namespace Ice {
/// Converts LLVM types to ICE types, and ICE types to LLVM types. /// Converts LLVM types to ICE types, and ICE types to LLVM types.
class TypeConverter { class TypeConverter {
TypeConverter(const TypeConverter &) LLVM_DELETED_FUNCTION; TypeConverter(const TypeConverter &) = delete;
TypeConverter &operator=(const TypeConverter &) LLVM_DELETED_FUNCTION; TypeConverter &operator=(const TypeConverter &) = delete;
public: public:
/// Context is the context to use to build llvm types. /// Context is the context to use to build llvm types.
......
...@@ -51,8 +51,8 @@ static cl::opt<bool> AllowErrorRecovery( ...@@ -51,8 +51,8 @@ static cl::opt<bool> AllowErrorRecovery(
// Top-level class to read PNaCl bitcode files, and translate to ICE. // Top-level class to read PNaCl bitcode files, and translate to ICE.
class TopLevelParser : public NaClBitcodeParser { class TopLevelParser : public NaClBitcodeParser {
TopLevelParser(const TopLevelParser &) LLVM_DELETED_FUNCTION; TopLevelParser(const TopLevelParser &) = delete;
TopLevelParser &operator=(const TopLevelParser &) LLVM_DELETED_FUNCTION; TopLevelParser &operator=(const TopLevelParser &) = delete;
public: public:
TopLevelParser(Ice::Translator &Translator, const std::string &InputName, TopLevelParser(Ice::Translator &Translator, const std::string &InputName,
...@@ -767,8 +767,8 @@ void GlobalsParser::ProcessRecord() { ...@@ -767,8 +767,8 @@ void GlobalsParser::ProcessRecord() {
/// Base class for parsing a valuesymtab block in the bitcode file. /// Base class for parsing a valuesymtab block in the bitcode file.
class ValuesymtabParser : public BlockParserBaseClass { class ValuesymtabParser : public BlockParserBaseClass {
ValuesymtabParser(const ValuesymtabParser &) LLVM_DELETED_FUNCTION; ValuesymtabParser(const ValuesymtabParser &) = delete;
void operator=(const ValuesymtabParser &) LLVM_DELETED_FUNCTION; void operator=(const ValuesymtabParser &) = delete;
public: public:
ValuesymtabParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser) ValuesymtabParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser)
...@@ -829,8 +829,8 @@ class FunctionValuesymtabParser; ...@@ -829,8 +829,8 @@ class FunctionValuesymtabParser;
/// Parses function blocks in the bitcode file. /// Parses function blocks in the bitcode file.
class FunctionParser : public BlockParserBaseClass { class FunctionParser : public BlockParserBaseClass {
FunctionParser(const FunctionParser &) LLVM_DELETED_FUNCTION; FunctionParser(const FunctionParser &) = delete;
FunctionParser &operator=(const FunctionParser &) LLVM_DELETED_FUNCTION; FunctionParser &operator=(const FunctionParser &) = delete;
friend class FunctionValuesymtabParser; friend class FunctionValuesymtabParser;
public: public:
...@@ -2012,8 +2012,8 @@ void FunctionParser::ProcessRecord() { ...@@ -2012,8 +2012,8 @@ void FunctionParser::ProcessRecord() {
/// Parses constants within a function block. /// Parses constants within a function block.
class ConstantsParser : public BlockParserBaseClass { class ConstantsParser : public BlockParserBaseClass {
ConstantsParser(const ConstantsParser &) LLVM_DELETED_FUNCTION; ConstantsParser(const ConstantsParser &) = delete;
ConstantsParser &operator=(const ConstantsParser &) LLVM_DELETED_FUNCTION; ConstantsParser &operator=(const ConstantsParser &) = delete;
public: public:
ConstantsParser(unsigned BlockID, FunctionParser *FuncParser) ConstantsParser(unsigned BlockID, FunctionParser *FuncParser)
...@@ -2128,9 +2128,8 @@ void ConstantsParser::ProcessRecord() { ...@@ -2128,9 +2128,8 @@ void ConstantsParser::ProcessRecord() {
// Parses valuesymtab blocks appearing in a function block. // Parses valuesymtab blocks appearing in a function block.
class FunctionValuesymtabParser : public ValuesymtabParser { class FunctionValuesymtabParser : public ValuesymtabParser {
FunctionValuesymtabParser(const FunctionValuesymtabParser &) FunctionValuesymtabParser(const FunctionValuesymtabParser &) = delete;
LLVM_DELETED_FUNCTION; void operator=(const FunctionValuesymtabParser &) = delete;
void operator=(const FunctionValuesymtabParser &) LLVM_DELETED_FUNCTION;
public: public:
FunctionValuesymtabParser(unsigned BlockID, FunctionParser *EnclosingParser) FunctionValuesymtabParser(unsigned BlockID, FunctionParser *EnclosingParser)
...@@ -2240,9 +2239,8 @@ private: ...@@ -2240,9 +2239,8 @@ private:
}; };
class ModuleValuesymtabParser : public ValuesymtabParser { class ModuleValuesymtabParser : public ValuesymtabParser {
ModuleValuesymtabParser(const ModuleValuesymtabParser &) ModuleValuesymtabParser(const ModuleValuesymtabParser &) = delete;
LLVM_DELETED_FUNCTION; void operator=(const ModuleValuesymtabParser &) = delete;
void operator=(const ModuleValuesymtabParser &) LLVM_DELETED_FUNCTION;
public: public:
ModuleValuesymtabParser(unsigned BlockID, ModuleParser *MP) ModuleValuesymtabParser(unsigned BlockID, ModuleParser *MP)
......
...@@ -31,8 +31,8 @@ public: ...@@ -31,8 +31,8 @@ public:
void translate(const std::string &IRFilename); void translate(const std::string &IRFilename);
private: private:
PNaClTranslator(const PNaClTranslator &) LLVM_DELETED_FUNCTION; PNaClTranslator(const PNaClTranslator &) = delete;
PNaClTranslator &operator=(const PNaClTranslator &) LLVM_DELETED_FUNCTION; PNaClTranslator &operator=(const PNaClTranslator &) = delete;
}; };
} }
......
...@@ -64,8 +64,8 @@ private: ...@@ -64,8 +64,8 @@ private:
void set_position(intptr_t position) { position_ = position; } void set_position(intptr_t position) { position_ = position; }
AssemblerFixup(const AssemblerFixup &) LLVM_DELETED_FUNCTION; AssemblerFixup(const AssemblerFixup &) = delete;
AssemblerFixup &operator=(const AssemblerFixup &) LLVM_DELETED_FUNCTION; AssemblerFixup &operator=(const AssemblerFixup &) = delete;
friend class AssemblerBuffer; friend class AssemblerBuffer;
}; };
...@@ -213,8 +213,8 @@ public: ...@@ -213,8 +213,8 @@ public:
private: private:
llvm::BumpPtrAllocator Allocator; llvm::BumpPtrAllocator Allocator;
Assembler(const Assembler &) LLVM_DELETED_FUNCTION; Assembler(const Assembler &) = delete;
Assembler &operator=(const Assembler &) LLVM_DELETED_FUNCTION; Assembler &operator=(const Assembler &) = delete;
}; };
} // end of namespace Ice } // end of namespace Ice
......
...@@ -60,9 +60,8 @@ public: ...@@ -60,9 +60,8 @@ public:
private: private:
DisplacementRelocation(FixupKind Kind, const ConstantRelocatable *Sym) DisplacementRelocation(FixupKind Kind, const ConstantRelocatable *Sym)
: AssemblerFixup(Kind, Sym) {} : AssemblerFixup(Kind, Sym) {}
DisplacementRelocation(const DisplacementRelocation &) LLVM_DELETED_FUNCTION; DisplacementRelocation(const DisplacementRelocation &) = delete;
DisplacementRelocation & DisplacementRelocation &operator=(const DisplacementRelocation &) = delete;
operator=(const DisplacementRelocation &) LLVM_DELETED_FUNCTION;
}; };
class Immediate { class Immediate {
...@@ -320,8 +319,8 @@ private: ...@@ -320,8 +319,8 @@ private:
intptr_t unresolved_near_positions_[kMaxUnresolvedBranches]; intptr_t unresolved_near_positions_[kMaxUnresolvedBranches];
friend class AssemblerX86; friend class AssemblerX86;
Label(const Label &) LLVM_DELETED_FUNCTION; Label(const Label &) = delete;
Label &operator=(const Label &) LLVM_DELETED_FUNCTION; Label &operator=(const Label &) = delete;
}; };
class AssemblerX86 : public Assembler { class AssemblerX86 : public Assembler {
...@@ -727,8 +726,8 @@ private: ...@@ -727,8 +726,8 @@ private:
AssemblerBuffer buffer_; AssemblerBuffer buffer_;
AssemblerX86(const AssemblerX86 &) LLVM_DELETED_FUNCTION; AssemblerX86(const AssemblerX86 &) = delete;
AssemblerX86 &operator=(const AssemblerX86 &) LLVM_DELETED_FUNCTION; AssemblerX86 &operator=(const AssemblerX86 &) = delete;
}; };
inline void AssemblerX86::EmitUint8(uint8_t value) { inline void AssemblerX86::EmitUint8(uint8_t value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment