summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/include/polly/ScopDetectionDiagnostic.h5
-rw-r--r--polly/lib/Analysis/Dependences.cpp7
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp5
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp5
-rw-r--r--polly/lib/Analysis/TempScopInfo.cpp4
-rw-r--r--polly/lib/CodeGen/Cloog.cpp3
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp3
-rw-r--r--polly/lib/CodeGen/IslAst.cpp4
-rw-r--r--polly/lib/CodeGen/IslCodeGeneration.cpp3
-rw-r--r--polly/lib/Exchange/JSONExporter.cpp4
-rw-r--r--polly/lib/Support/SCEVValidator.cpp6
-rw-r--r--polly/lib/Support/ScopHelper.cpp6
-rw-r--r--polly/lib/Transform/IndVarSimplify.cpp4
-rw-r--r--polly/lib/Transform/IndependentBlocks.cpp3
-rw-r--r--polly/lib/Transform/Pluto.cpp4
-rw-r--r--polly/lib/Transform/Pocc.cpp7
-rw-r--r--polly/lib/Transform/ScheduleOptimizer.cpp4
17 files changed, 40 insertions, 37 deletions
diff --git a/polly/include/polly/ScopDetectionDiagnostic.h b/polly/include/polly/ScopDetectionDiagnostic.h
index 4900b7871b7..5e90f3c8cf7 100644
--- a/polly/include/polly/ScopDetectionDiagnostic.h
+++ b/polly/include/polly/ScopDetectionDiagnostic.h
@@ -23,12 +23,11 @@
#include "llvm/IR/Value.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/Twine.h"
+#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
+#include <string>
#define DEBUG_TYPE "polly-detect"
-#include "llvm/Support/Debug.h"
-
-#include <string>
#define BADSCOP_STAT(NAME, DESC) \
STATISTIC(Bad##NAME##ForScop, "Number of bad regions for Scop: " DESC)
diff --git a/polly/lib/Analysis/Dependences.cpp b/polly/lib/Analysis/Dependences.cpp
index ea03f637645..c24120c5cd8 100644
--- a/polly/lib/Analysis/Dependences.cpp
+++ b/polly/lib/Analysis/Dependences.cpp
@@ -25,6 +25,8 @@
#include "polly/Options.h"
#include "polly/ScopInfo.h"
#include "polly/Support/GICHelper.h"
+#include "llvm/Support/Debug.h"
+
#include <isl/aff.h>
#include <isl/ctx.h>
#include <isl/flow.h>
@@ -32,12 +34,11 @@
#include <isl/options.h>
#include <isl/set.h>
-#define DEBUG_TYPE "polly-dependence"
-#include "llvm/Support/Debug.h"
-
using namespace polly;
using namespace llvm;
+#define DEBUG_TYPE "polly-dependence"
+
static cl::opt<int>
OptComputeOut("polly-dependences-computeout",
cl::desc("Bound the dependence analysis by a maximal amount of "
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index e3ed26741f5..c83a6eb1fd7 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -61,15 +61,14 @@
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/IR/LLVMContext.h"
-
-#define DEBUG_TYPE "polly-detect"
#include "llvm/Support/Debug.h"
-
#include <set>
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-detect"
+
static cl::opt<bool>
DetectScopsWithoutLoops("polly-detect-scops-in-functions-without-loops",
cl::desc("Detect scops in functions without loops"),
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index a3c56624842..185aba41153 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -31,8 +31,6 @@
#include "llvm/Analysis/RegionIterator.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/Support/CommandLine.h"
-
-#define DEBUG_TYPE "polly-scops"
#include "llvm/Support/Debug.h"
#include "isl/constraint.h"
@@ -44,6 +42,7 @@
#include "isl/local_space.h"
#include "isl/options.h"
#include "isl/val.h"
+
#include <sstream>
#include <string>
#include <vector>
@@ -51,6 +50,8 @@
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-scops"
+
STATISTIC(ScopFound, "Number of valid Scops");
STATISTIC(RichScopFound, "Number of Scops containing a loop");
diff --git a/polly/lib/Analysis/TempScopInfo.cpp b/polly/lib/Analysis/TempScopInfo.cpp
index 7bfdeb12a88..042f1cb8d81 100644
--- a/polly/lib/Analysis/TempScopInfo.cpp
+++ b/polly/lib/Analysis/TempScopInfo.cpp
@@ -26,13 +26,13 @@
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/IR/DataLayout.h"
-
-#define DEBUG_TYPE "polly-analyze-ir"
#include "llvm/Support/Debug.h"
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-analyze-ir"
+
//===----------------------------------------------------------------------===//
/// Helper Classes
diff --git a/polly/lib/CodeGen/Cloog.cpp b/polly/lib/CodeGen/Cloog.cpp
index 4ab44d2ab01..d8ef5ba1f8e 100644
--- a/polly/lib/CodeGen/Cloog.cpp
+++ b/polly/lib/CodeGen/Cloog.cpp
@@ -27,7 +27,6 @@
#include "polly/LinkAllPasses.h"
#include "polly/ScopInfo.h"
-#define DEBUG_TYPE "polly-cloog"
#include "llvm/IR/Module.h"
#include "llvm/Support/Debug.h"
@@ -39,6 +38,8 @@
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-cloog"
+
namespace polly {
class Cloog {
Scop *S;
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index d7270bd48e0..967c6e2ec1a 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -23,7 +23,6 @@
#include "polly/CodeGen/Cloog.h"
#ifdef CLOOG_FOUND
-#define DEBUG_TYPE "polly-codegen"
#include "polly/Dependences.h"
#include "polly/LinkAllPasses.h"
#include "polly/Options.h"
@@ -58,6 +57,8 @@
using namespace polly;
using namespace llvm;
+#define DEBUG_TYPE "polly-codegen"
+
struct isl_set;
namespace polly {
diff --git a/polly/lib/CodeGen/IslAst.cpp b/polly/lib/CodeGen/IslAst.cpp
index fafb5a202d3..e2fe4ad9a21 100644
--- a/polly/lib/CodeGen/IslAst.cpp
+++ b/polly/lib/CodeGen/IslAst.cpp
@@ -25,8 +25,6 @@
#include "polly/LinkAllPasses.h"
#include "polly/Options.h"
#include "polly/ScopInfo.h"
-
-#define DEBUG_TYPE "polly-ast"
#include "llvm/Support/Debug.h"
#include "isl/union_map.h"
@@ -39,6 +37,8 @@
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-ast"
+
static cl::opt<bool> UseContext("polly-ast-use-context",
cl::desc("Use context"), cl::Hidden,
cl::init(false), cl::ZeroOrMore,
diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp
index 56b065404c3..ed1b5f27268 100644
--- a/polly/lib/CodeGen/IslCodeGeneration.cpp
+++ b/polly/lib/CodeGen/IslCodeGeneration.cpp
@@ -33,7 +33,6 @@
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/ScalarEvolutionExpander.h"
#include "llvm/IR/Module.h"
-#define DEBUG_TYPE "polly-codegen-isl"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/IR/DataLayout.h"
@@ -52,6 +51,8 @@
using namespace polly;
using namespace llvm;
+#define DEBUG_TYPE "polly-codegen-isl"
+
/// @brief Insert function calls that print certain LLVM values at run time.
///
/// This class inserts libc function calls to print certain LLVM values at
diff --git a/polly/lib/Exchange/JSONExporter.cpp b/polly/lib/Exchange/JSONExporter.cpp
index eb5ac2eaf74..aac665e183c 100644
--- a/polly/lib/Exchange/JSONExporter.cpp
+++ b/polly/lib/Exchange/JSONExporter.cpp
@@ -22,8 +22,6 @@
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Support/system_error.h"
-#define DEBUG_TYPE "polly-import-jscop"
-
#include "json/reader.h"
#include "json/writer.h"
@@ -37,6 +35,8 @@
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-import-jscop"
+
STATISTIC(NewAccessMapFound, "Number of updated access functions");
namespace {
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp
index 2434c0664e6..3a8895f6cad 100644
--- a/polly/lib/Support/SCEVValidator.cpp
+++ b/polly/lib/Support/SCEVValidator.cpp
@@ -1,17 +1,17 @@
#include "polly/Support/SCEVValidator.h"
#include "polly/ScopInfo.h"
-
-#define DEBUG_TYPE "polly-scev-validator"
-#include "llvm/Support/Debug.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/Analysis/RegionInfo.h"
+#include "llvm/Support/Debug.h"
#include <vector>
using namespace llvm;
+#define DEBUG_TYPE "polly-scev-validator"
+
namespace SCEVType {
/// @brief The type of a SCEV
///
diff --git a/polly/lib/Support/ScopHelper.cpp b/polly/lib/Support/ScopHelper.cpp
index e10b973afad..182db20ab1d 100644
--- a/polly/lib/Support/ScopHelper.cpp
+++ b/polly/lib/Support/ScopHelper.cpp
@@ -18,13 +18,13 @@
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/ScalarEvolutionExpressions.h"
#include "llvm/IR/CFG.h"
-#include "llvm/Transforms/Utils/BasicBlockUtils.h"
-
-#define DEBUG_TYPE "polly-scop-helper"
#include "llvm/Support/Debug.h"
+#include "llvm/Transforms/Utils/BasicBlockUtils.h"
using namespace llvm;
+#define DEBUG_TYPE "polly-scop-helper"
+
// Helper function for Scop
// TODO: Add assertion to not allow parameter to be null
//===----------------------------------------------------------------------===//
diff --git a/polly/lib/Transform/IndVarSimplify.cpp b/polly/lib/Transform/IndVarSimplify.cpp
index dd56285a4fd..8d4f51cb2cf 100644
--- a/polly/lib/Transform/IndVarSimplify.cpp
+++ b/polly/lib/Transform/IndVarSimplify.cpp
@@ -24,8 +24,6 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "indvars"
-
#include "polly/LinkAllPasses.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/SmallVector.h"
@@ -52,6 +50,8 @@
#include "llvm/Transforms/Utils/SimplifyIndVar.h"
using namespace llvm;
+#define DEBUG_TYPE "indvars"
+
STATISTIC(NumRemoved, "Number of aux indvars removed");
STATISTIC(NumWidened, "Number of indvars widened");
STATISTIC(NumInserted, "Number of canonical indvars added");
diff --git a/polly/lib/Transform/IndependentBlocks.cpp b/polly/lib/Transform/IndependentBlocks.cpp
index 2a5c78c437a..daf958dec1e 100644
--- a/polly/lib/Transform/IndependentBlocks.cpp
+++ b/polly/lib/Transform/IndependentBlocks.cpp
@@ -22,7 +22,6 @@
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Support/CommandLine.h"
-#define DEBUG_TYPE "polly-independent"
#include "llvm/Support/Debug.h"
#include <vector>
@@ -30,6 +29,8 @@
using namespace polly;
using namespace llvm;
+#define DEBUG_TYPE "polly-independent"
+
static cl::opt<bool> DisableIntraScopScalarToArray(
"disable-polly-intra-scop-scalar-to-array",
cl::desc("Do not rewrite scalar to array to generate independent blocks"),
diff --git a/polly/lib/Transform/Pluto.cpp b/polly/lib/Transform/Pluto.cpp
index 1e026f0e0a4..9696d589876 100644
--- a/polly/lib/Transform/Pluto.cpp
+++ b/polly/lib/Transform/Pluto.cpp
@@ -20,8 +20,6 @@
#include "polly/Options.h"
#include "polly/ScopInfo.h"
#include "polly/Support/GICHelper.h"
-
-#define DEBUG_TYPE "polly-opt-pluto"
#include "llvm/Support/Debug.h"
#include "pluto/libpluto.h"
@@ -30,6 +28,8 @@
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-opt-pluto"
+
static cl::opt<bool> EnableTiling("polly-pluto-tile", cl::desc("Enable tiling"),
cl::Hidden, cl::init(false), cl::ZeroOrMore,
cl::cat(PollyCategory));
diff --git a/polly/lib/Transform/Pocc.cpp b/polly/lib/Transform/Pocc.cpp
index d083fc1ab71..8002b7655e1 100644
--- a/polly/lib/Transform/Pocc.cpp
+++ b/polly/lib/Transform/Pocc.cpp
@@ -24,8 +24,7 @@
#include "polly/Options.h"
#include "polly/ScheduleOptimizer.h"
#include "polly/ScopInfo.h"
-
-#define DEBUG_TYPE "polly-opt-pocc"
+#include "polly/ScopLib.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"
@@ -34,8 +33,6 @@
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/SmallString.h"
-#include "polly/ScopLib.h"
-
#include "isl/space.h"
#include "isl/map.h"
#include "isl/constraint.h"
@@ -43,6 +40,8 @@
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-opt-pocc"
+
static cl::opt<std::string> PlutoFuse("pluto-fuse", cl::desc(""), cl::Hidden,
cl::value_desc("Set fuse mode of Pluto"),
cl::init("maxfuse"),
diff --git a/polly/lib/Transform/ScheduleOptimizer.cpp b/polly/lib/Transform/ScheduleOptimizer.cpp
index 3a3c8151d23..06ac8dcc476 100644
--- a/polly/lib/Transform/ScheduleOptimizer.cpp
+++ b/polly/lib/Transform/ScheduleOptimizer.cpp
@@ -30,13 +30,13 @@
#include "polly/LinkAllPasses.h"
#include "polly/Options.h"
#include "polly/ScopInfo.h"
-
-#define DEBUG_TYPE "polly-opt-isl"
#include "llvm/Support/Debug.h"
using namespace llvm;
using namespace polly;
+#define DEBUG_TYPE "polly-opt-isl"
+
namespace polly {
bool DisablePollyTiling;
}
OpenPOWER on IntegriCloud