llvm.org GIT mirror llvm / 86a1c32
Use LLVM_DELETED_FUNCTION in place of 'DO NOT IMPLEMENT' comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163974 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 8 years ago
14 changed file(s) with 41 addition(s) and 38 deletion(s). Raw diff Collapse all Expand all
196196 /// @brief A class for maintaining the slot number definition
197197 /// as a placeholder for the actual definition for forward constants defs.
198198 class ConstantPlaceHolder : public ConstantExpr {
199 void operator=(const ConstantPlaceHolder &); // DO NOT IMPLEMENT
199 void operator=(const ConstantPlaceHolder &) LLVM_DELETED_FUNCTION;
200200 public:
201201 // allocate space for exactly one operand
202202 void *operator new(size_t s) {
7777
7878 unsigned FirstFuncConstantID;
7979 unsigned FirstInstID;
80
81 ValueEnumerator(const ValueEnumerator &); // DO NOT IMPLEMENT
82 void operator=(const ValueEnumerator &); // DO NOT IMPLEMENT
80
81 ValueEnumerator(const ValueEnumerator &) LLVM_DELETED_FUNCTION;
82 void operator=(const ValueEnumerator &) LLVM_DELETED_FUNCTION;
8383 public:
8484 ValueEnumerator(const Module *M);
8585
236236 #endif
237237 };
238238
239 DwarfAccelTable(const DwarfAccelTable&); // DO NOT IMPLEMENT
240 void operator=(const DwarfAccelTable&); // DO NOT IMPLEMENT
239 DwarfAccelTable(const DwarfAccelTable&) LLVM_DELETED_FUNCTION;
240 void operator=(const DwarfAccelTable&) LLVM_DELETED_FUNCTION;
241241
242242 // Internal Functions
243243 void EmitHeader(AsmPrinter *);
177177 bool checkLoopInterference(MachineLoopRange*);
178178
179179 private:
180 Query(const Query&); // DO NOT IMPLEMENT
181 void operator=(const Query&); // DO NOT IMPLEMENT
180 Query(const Query&) LLVM_DELETED_FUNCTION;
181 void operator=(const Query&) LLVM_DELETED_FUNCTION;
182182 };
183183
184184 // Array of LiveIntervalUnions.
6262 /// createSpillSlot - Allocate a spill slot for RC from MFI.
6363 unsigned createSpillSlot(const TargetRegisterClass *RC);
6464
65 VirtRegMap(const VirtRegMap&); // DO NOT IMPLEMENT
66 void operator=(const VirtRegMap&); // DO NOT IMPLEMENT
65 VirtRegMap(const VirtRegMap&) LLVM_DELETED_FUNCTION;
66 void operator=(const VirtRegMap&) LLVM_DELETED_FUNCTION;
6767
6868 public:
6969 static char ID;
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/Support/StreamableMemoryObject.h"
10 #include "llvm/Support/Compiler.h"
1011 #include
1112 #include
1213
4849 return static_cast(address) == LastChar - FirstChar;
4950 }
5051
51 RawMemoryObject(const RawMemoryObject&); // DO NOT IMPLEMENT
52 void operator=(const RawMemoryObject&); // DO NOT IMPLEMENT
52 RawMemoryObject(const RawMemoryObject&) LLVM_DELETED_FUNCTION;
53 void operator=(const RawMemoryObject&) LLVM_DELETED_FUNCTION;
5354 };
5455
5556 int RawMemoryObject::readByte(uint64_t address, uint8_t* ptr) const {
3434
3535 namespace {
3636 class ARMMCCodeEmitter : public MCCodeEmitter {
37 ARMMCCodeEmitter(const ARMMCCodeEmitter &); // DO NOT IMPLEMENT
38 void operator=(const ARMMCCodeEmitter &); // DO NOT IMPLEMENT
37 ARMMCCodeEmitter(const ARMMCCodeEmitter &) LLVM_DELETED_FUNCTION;
38 void operator=(const ARMMCCodeEmitter &) LLVM_DELETED_FUNCTION;
3939 const MCInstrInfo &MCII;
4040 const MCSubtargetInfo &STI;
4141 const MCContext &CTX;
2828
2929 namespace {
3030 class MBlazeMCCodeEmitter : public MCCodeEmitter {
31 MBlazeMCCodeEmitter(const MBlazeMCCodeEmitter &); // DO NOT IMPLEMENT
32 void operator=(const MBlazeMCCodeEmitter &); // DO NOT IMPLEMENT
31 MBlazeMCCodeEmitter(const MBlazeMCCodeEmitter &) LLVM_DELETED_FUNCTION;
32 void operator=(const MBlazeMCCodeEmitter &) LLVM_DELETED_FUNCTION;
3333 const MCInstrInfo &MCII;
3434
3535 public:
2424
2525 namespace {
2626 class PPCMCCodeEmitter : public MCCodeEmitter {
27 PPCMCCodeEmitter(const PPCMCCodeEmitter &); // DO NOT IMPLEMENT
28 void operator=(const PPCMCCodeEmitter &); // DO NOT IMPLEMENT
29
27 PPCMCCodeEmitter(const PPCMCCodeEmitter &) LLVM_DELETED_FUNCTION;
28 void operator=(const PPCMCCodeEmitter &) LLVM_DELETED_FUNCTION;
29
3030 public:
3131 PPCMCCodeEmitter(const MCInstrInfo &mcii, const MCSubtargetInfo &sti,
3232 MCContext &ctx) {
2727
2828 namespace {
2929 class X86MCCodeEmitter : public MCCodeEmitter {
30 X86MCCodeEmitter(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
31 void operator=(const X86MCCodeEmitter &); // DO NOT IMPLEMENT
30 X86MCCodeEmitter(const X86MCCodeEmitter &) LLVM_DELETED_FUNCTION;
31 void operator=(const X86MCCodeEmitter &) LLVM_DELETED_FUNCTION;
3232 const MCInstrInfo &MCII;
3333 const MCSubtargetInfo &STI;
3434 MCContext &Ctx;
2525 SmallVector Worklist;
2626 DenseMap WorklistMap;
2727
28 void operator=(const InstCombineWorklist&RHS); // DO NOT IMPLEMENT
29 InstCombineWorklist(const InstCombineWorklist&); // DO NOT IMPLEMENT
28 void operator=(const InstCombineWorklist&RHS) LLVM_DELETED_FUNCTION;
29 InstCombineWorklist(const InstCombineWorklist&) LLVM_DELETED_FUNCTION;
3030 public:
3131 InstCombineWorklist() {}
3232
273273 CallScope(*availableCalls) {}
274274
275275 private:
276 NodeScope(const NodeScope&); // DO NOT IMPLEMENT
276 NodeScope(const NodeScope&) LLVM_DELETED_FUNCTION;
277 void operator=(const NodeScope&) LLVM_DELETED_FUNCTION;
277278
278279 ScopedHTType::ScopeTy Scope;
279280 LoadHTType::ScopeTy LoadScope;
312313 void process() { Processed = true; }
313314
314315 private:
315 StackNode(const StackNode&); // DO NOT IMPLEMENT
316 StackNode(const StackNode&) LLVM_DELETED_FUNCTION;
317 void operator=(const StackNode&) LLVM_DELETED_FUNCTION;
316318
317319 // Members.
318320 unsigned CurrentGeneration;
158158 /// TypePrinting - Type printing machinery.
159159 namespace {
160160 class TypePrinting {
161 TypePrinting(const TypePrinting &); // DO NOT IMPLEMENT
162 void operator=(const TypePrinting&); // DO NOT IMPLEMENT
161 TypePrinting(const TypePrinting &) LLVM_DELETED_FUNCTION;
162 void operator=(const TypePrinting&) LLVM_DELETED_FUNCTION;
163163 public:
164164
165165 /// NamedTypes - The named types that are used by the current module.
397397 /// Add all of the functions arguments, basic blocks, and instructions.
398398 void processFunction();
399399
400 SlotTracker(const SlotTracker &); // DO NOT IMPLEMENT
401 void operator=(const SlotTracker &); // DO NOT IMPLEMENT
400 SlotTracker(const SlotTracker &) LLVM_DELETED_FUNCTION;
401 void operator=(const SlotTracker &) LLVM_DELETED_FUNCTION;
402402 };
403403
404404 } // end anonymous namespace
3232 /// behind the scenes to implement unary constant exprs.
3333 class UnaryConstantExpr : public ConstantExpr {
3434 virtual void anchor();
35 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
35 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
3636 public:
3737 // allocate space for exactly one operand
3838 void *operator new(size_t s) {
4949 /// behind the scenes to implement binary constant exprs.
5050 class BinaryConstantExpr : public ConstantExpr {
5151 virtual void anchor();
52 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
52 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
5353 public:
5454 // allocate space for exactly two operands
5555 void *operator new(size_t s) {
7070 /// behind the scenes to implement select constant exprs.
7171 class SelectConstantExpr : public ConstantExpr {
7272 virtual void anchor();
73 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
73 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
7474 public:
7575 // allocate space for exactly three operands
7676 void *operator new(size_t s) {
9191 /// extractelement constant exprs.
9292 class ExtractElementConstantExpr : public ConstantExpr {
9393 virtual void anchor();
94 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
94 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
9595 public:
9696 // allocate space for exactly two operands
9797 void *operator new(size_t s) {
112112 /// insertelement constant exprs.
113113 class InsertElementConstantExpr : public ConstantExpr {
114114 virtual void anchor();
115 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
115 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
116116 public:
117117 // allocate space for exactly three operands
118118 void *operator new(size_t s) {
134134 /// shufflevector constant exprs.
135135 class ShuffleVectorConstantExpr : public ConstantExpr {
136136 virtual void anchor();
137 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
137 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
138138 public:
139139 // allocate space for exactly three operands
140140 void *operator new(size_t s) {
159159 /// extractvalue constant exprs.
160160 class ExtractValueConstantExpr : public ConstantExpr {
161161 virtual void anchor();
162 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
162 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
163163 public:
164164 // allocate space for exactly one operand
165165 void *operator new(size_t s) {
185185 /// insertvalue constant exprs.
186186 class InsertValueConstantExpr : public ConstantExpr {
187187 virtual void anchor();
188 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
188 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
189189 public:
190190 // allocate space for exactly one operand
191191 void *operator new(size_t s) {
233233 // needed in order to store the predicate value for these instructions.
234234 class CompareConstantExpr : public ConstantExpr {
235235 virtual void anchor();
236 void *operator new(size_t, unsigned); // DO NOT IMPLEMENT
236 void *operator new(size_t, unsigned) LLVM_DELETED_FUNCTION;
237237 public:
238238 // allocate space for exactly two operands
239239 void *operator new(size_t s) {