summaryrefslogtreecommitdiffstats
path: root/polly
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2013-10-03 13:09:14 +0000
committerTobias Grosser <tobias@grosser.es>2013-10-03 13:09:14 +0000
commit51b78752fe24e58aa0e8e963f3f09c0c510b27c8 (patch)
treeb4b50403de9f55579838e09d77cbb8390b5fab06 /polly
parent1ff0be799d613c4a1493825509fee9e6e0d603b6 (diff)
downloadbcm5719-llvm-51b78752fe24e58aa0e8e963f3f09c0c510b27c8.tar.gz
bcm5719-llvm-51b78752fe24e58aa0e8e963f3f09c0c510b27c8.zip
Use LLVM_DELETED_FUNCTION instead of a comment
Contributed-by: Michael Kruse <MichaelKruse@meinersbur.de> llvm-svn: 191894
Diffstat (limited to 'polly')
-rwxr-xr-xpolly/include/polly/MayAliasSet.h13
-rwxr-xr-xpolly/include/polly/ScopDetection.h6
-rwxr-xr-xpolly/include/polly/ScopInfo.h24
-rwxr-xr-xpolly/include/polly/TempScopInfo.h6
-rw-r--r--polly/lib/CodePreparation.cpp7
5 files changed, 20 insertions, 36 deletions
diff --git a/polly/include/polly/MayAliasSet.h b/polly/include/polly/MayAliasSet.h
index dfdd4e3589a..f35bf4ab096 100755
--- a/polly/include/polly/MayAliasSet.h
+++ b/polly/include/polly/MayAliasSet.h
@@ -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;
diff --git a/polly/include/polly/ScopDetection.h b/polly/include/polly/ScopDetection.h
index dd5b630bae3..63c5c1bbe72 100755
--- a/polly/include/polly/ScopDetection.h
+++ b/polly/include/polly/ScopDetection.h
@@ -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.
//@{
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 4fdf906fab9..6e86818596b 100755
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -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<<(raw_ostream &O, const ScopStmt &S) {
/// 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<<(raw_ostream &O, const Scop &scop) {
///
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;
diff --git a/polly/include/polly/TempScopInfo.h b/polly/include/polly/TempScopInfo.h
index 56c72bff6ca..b9831647f0c 100755
--- a/polly/include/polly/TempScopInfo.h
+++ b/polly/include/polly/TempScopInfo.h
@@ -216,10 +216,8 @@ typedef std::map<const Region *, TempScop *> TempScopMapType;
///
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;
diff --git a/polly/lib/CodePreparation.cpp b/polly/lib/CodePreparation.cpp
index 38a107ab1c6..a81d9d8a23f 100644
--- a/polly/lib/CodePreparation.cpp
+++ b/polly/lib/CodePreparation.cpp
@@ -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;
OpenPOWER on IntegriCloud