[polly] r191894 - Use LLVM_DELETED_FUNCTION instead of a comment

Tobias Grosser tobias at grosser.es
Thu Oct 3 06:09:14 PDT 2013


Author: grosser
Date: Thu Oct  3 08:09:14 2013
New Revision: 191894

URL: http://llvm.org/viewvc/llvm-project?rev=191894&view=rev
Log:
Use LLVM_DELETED_FUNCTION instead of a comment

Contributed-by:  Michael Kruse  <MichaelKruse at meinersbur.de>

Modified:
    polly/trunk/include/polly/MayAliasSet.h
    polly/trunk/include/polly/ScopDetection.h
    polly/trunk/include/polly/ScopInfo.h
    polly/trunk/include/polly/TempScopInfo.h
    polly/trunk/lib/CodePreparation.cpp

Modified: polly/trunk/include/polly/MayAliasSet.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/MayAliasSet.h?rev=191894&r1=191893&r2=191894&view=diff
==============================================================================
--- polly/trunk/include/polly/MayAliasSet.h (original)
+++ polly/trunk/include/polly/MayAliasSet.h Thu Oct  3 08:09:14 2013
@@ -71,10 +71,8 @@ class TempScop;
 ///
 /// Note: Pointers in MayAliasSet only must-alias with each other now.
 class MayAliasSet {
-  // DO NOT IMPLEMENT
-  MayAliasSet(const MayAliasSet &);
-  // DO NOT IMPLEMENT
-  const MayAliasSet &operator=(const MayAliasSet &);
+  MayAliasSet(const MayAliasSet &) LLVM_DELETED_FUNCTION;
+  const MayAliasSet &operator=(const MayAliasSet &) LLVM_DELETED_FUNCTION;
 
   // TODO: Use CallbackVH to update the set when some base pointers are deleted
   // by some pass.
@@ -107,10 +105,9 @@ public:
 //===----------------------------------------------------------------------===//
 /// @brief Compute and manage the may-alias sets in a TempSCoP or SCoP.
 class MayAliasSetInfo {
-  // DO NOT IMPLEMENT
-  MayAliasSetInfo(const MayAliasSetInfo &);
-  // DO NOT IMPLEMENT
-  const MayAliasSetInfo &operator=(const MayAliasSetInfo &);
+  MayAliasSetInfo(const MayAliasSetInfo &) LLVM_DELETED_FUNCTION;
+  const MayAliasSetInfo &operator=(
+      const MayAliasSetInfo &) LLVM_DELETED_FUNCTION;
 
   SpecificBumpPtrAllocator<MayAliasSet> MayASAllocator;
 

Modified: polly/trunk/include/polly/ScopDetection.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopDetection.h?rev=191894&r1=191893&r2=191894&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopDetection.h (original)
+++ polly/trunk/include/polly/ScopDetection.h Thu Oct  3 08:09:14 2013
@@ -79,10 +79,8 @@ extern bool PollyTrackFailures;
 /// function.
 class ScopDetection : public FunctionPass {
   //===--------------------------------------------------------------------===//
-  // DO NOT IMPLEMENT
-  ScopDetection(const ScopDetection &);
-  // DO NOT IMPLEMENT
-  const ScopDetection &operator=(const ScopDetection &);
+  ScopDetection(const ScopDetection &) LLVM_DELETED_FUNCTION;
+  const ScopDetection &operator=(const ScopDetection &) LLVM_DELETED_FUNCTION;
 
   /// @brief Analysis passes used.
   //@{

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=191894&r1=191893&r2=191894&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Thu Oct  3 08:09:14 2013
@@ -88,10 +88,8 @@ public:
   };
 
 private:
-  // DO NOT IMPLEMENT
-  MemoryAccess(const MemoryAccess &);
-  // DO NOT IMPLEMENT
-  const MemoryAccess &operator=(const MemoryAccess &);
+  MemoryAccess(const MemoryAccess &) LLVM_DELETED_FUNCTION;
+  const MemoryAccess &operator=(const MemoryAccess &) LLVM_DELETED_FUNCTION;
 
   isl_map *AccessRelation;
   enum AccessType Type;
@@ -205,10 +203,8 @@ public:
 /// At the moment every statement represents a single basic block of LLVM-IR.
 class ScopStmt {
   //===-------------------------------------------------------------------===//
-  // DO NOT IMPLEMENT
-  ScopStmt(const ScopStmt &);
-  // DO NOT IMPLEMENT
-  const ScopStmt &operator=(const ScopStmt &);
+  ScopStmt(const ScopStmt &) LLVM_DELETED_FUNCTION;
+  const ScopStmt &operator=(const ScopStmt &) LLVM_DELETED_FUNCTION;
 
   /// Polyhedral description
   //@{
@@ -421,10 +417,8 @@ static inline raw_ostream &operator<<(ra
 ///   can take and relations between different parameters.
 class Scop {
   //===-------------------------------------------------------------------===//
-  // DO NOT IMPLEMENT
-  Scop(const Scop &);
-  // DO NOT IMPLEMENT
-  const Scop &operator=(const Scop &);
+  Scop(const Scop &) LLVM_DELETED_FUNCTION;
+  const Scop &operator=(const Scop &) LLVM_DELETED_FUNCTION;
 
   ScalarEvolution *SE;
 
@@ -616,10 +610,8 @@ static inline raw_ostream &operator<<(ra
 ///
 class ScopInfo : public RegionPass {
   //===-------------------------------------------------------------------===//
-  // DO NOT IMPLEMENT
-  ScopInfo(const ScopInfo &);
-  // DO NOT IMPLEMENT
-  const ScopInfo &operator=(const ScopInfo &);
+  ScopInfo(const ScopInfo &) LLVM_DELETED_FUNCTION;
+  const ScopInfo &operator=(const ScopInfo &) LLVM_DELETED_FUNCTION;
 
   // The Scop
   Scop *scop;

Modified: polly/trunk/include/polly/TempScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/TempScopInfo.h?rev=191894&r1=191893&r2=191894&view=diff
==============================================================================
--- polly/trunk/include/polly/TempScopInfo.h (original)
+++ polly/trunk/include/polly/TempScopInfo.h Thu Oct  3 08:09:14 2013
@@ -216,10 +216,8 @@ typedef std::map<const Region *, TempSco
 ///
 class TempScopInfo : public FunctionPass {
   //===-------------------------------------------------------------------===//
-  // DO NOT IMPLEMENT
-  TempScopInfo(const TempScopInfo &);
-  // DO NOT IMPLEMENT
-  const TempScopInfo &operator=(const TempScopInfo &);
+  TempScopInfo(const TempScopInfo &) LLVM_DELETED_FUNCTION;
+  const TempScopInfo &operator=(const TempScopInfo &) LLVM_DELETED_FUNCTION;
 
   // The ScalarEvolution to help building Scop.
   ScalarEvolution *SE;

Modified: polly/trunk/lib/CodePreparation.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodePreparation.cpp?rev=191894&r1=191893&r2=191894&view=diff
==============================================================================
--- polly/trunk/lib/CodePreparation.cpp (original)
+++ polly/trunk/lib/CodePreparation.cpp Thu Oct  3 08:09:14 2013
@@ -52,10 +52,9 @@ namespace {
 /// @brief Prepare the IR for the scop detection.
 ///
 class CodePreparation : public FunctionPass {
-  // DO NOT IMPLEMENT.
-  CodePreparation(const CodePreparation &);
-  // DO NOT IMPLEMENT.
-  const CodePreparation &operator=(const CodePreparation &);
+  CodePreparation(const CodePreparation &) LLVM_DELETED_FUNCTION;
+  const CodePreparation &operator=(
+      const CodePreparation &) LLVM_DELETED_FUNCTION;
 
   LoopInfo *LI;
   ScalarEvolution *SE;





More information about the llvm-commits mailing list