aboutsummaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorAndreas Simbuerger <simbuerg@fim.uni-passau.de>2014-06-12 07:26:25 +0000
committerAndreas Simbuerger <simbuerg@fim.uni-passau.de>2014-06-12 07:26:25 +0000
commit06904d85545be4708a0904913bb6eca0dde1c99a (patch)
treee9a2840a63834d1919f7a4bdfdb54588f412415d /polly
parent24af0c82201b81437ec2026a84ccef463ddbd9be (diff)
downloadllvm-06904d85545be4708a0904913bb6eca0dde1c99a.zip
llvm-06904d85545be4708a0904913bb6eca0dde1c99a.tar.gz
llvm-06904d85545be4708a0904913bb6eca0dde1c99a.tar.bz2
Do not use namespace polly inside a header.
In general this fixes ambiguity that can arise from using a different namespace that declares the same symbols as we do. One example inside llvm would be: createIndVarSimplifyPass(..); Which can be found in: llvm/Transforms/Scalar.h and polly/LinkAllPasses.h llvm-svn: 210755
Diffstat (limited to 'polly')
-rw-r--r--polly/include/polly/LinkAllPasses.h52
-rw-r--r--polly/lib/Support/RegisterPasses.cpp1
2 files changed, 26 insertions, 27 deletions
diff --git a/polly/include/polly/LinkAllPasses.h b/polly/include/polly/LinkAllPasses.h
index 6b2a019..edce2b0 100644
--- a/polly/include/polly/LinkAllPasses.h
+++ b/polly/include/polly/LinkAllPasses.h
@@ -63,8 +63,6 @@ extern char &IndependentBlocksID;
extern char &CodePreparationID;
}
-using namespace polly;
-
namespace {
struct PollyForcePassLinking {
PollyForcePassLinking() {
@@ -76,36 +74,36 @@ struct PollyForcePassLinking {
return;
#ifdef CLOOG_FOUND
- createCloogExporterPass();
- createCloogInfoPass();
- createCodeGenerationPass();
+ polly::createCloogExporterPass();
+ polly::createCloogInfoPass();
+ polly::createCodeGenerationPass();
#endif
- createCodePreparationPass();
- createDeadCodeElimPass();
- createDependencesPass();
- createDOTOnlyPrinterPass();
- createDOTOnlyViewerPass();
- createDOTPrinterPass();
- createDOTViewerPass();
- createIndependentBlocksPass();
- createIndVarSimplifyPass();
- createJSONExporterPass();
- createJSONImporterPass();
- createScopDetectionPass();
- createScopInfoPass();
+ polly::createCodePreparationPass();
+ polly::createDeadCodeElimPass();
+ polly::createDependencesPass();
+ polly::createDOTOnlyPrinterPass();
+ polly::createDOTOnlyViewerPass();
+ polly::createDOTPrinterPass();
+ polly::createDOTViewerPass();
+ polly::createIndependentBlocksPass();
+ polly::createIndVarSimplifyPass();
+ polly::createJSONExporterPass();
+ polly::createJSONImporterPass();
+ polly::createScopDetectionPass();
+ polly::createScopInfoPass();
#ifdef PLUTO_FOUND
- createPlutoOptimizerPass();
+ polly::createPlutoOptimizerPass();
#endif
- createPollyCanonicalizePass();
- createIslAstInfoPass();
- createIslCodeGenerationPass();
- createIslScheduleOptimizerPass();
- createTempScopInfoPass();
+ polly::createPollyCanonicalizePass();
+ polly::createIslAstInfoPass();
+ polly::createIslCodeGenerationPass();
+ polly::createIslScheduleOptimizerPass();
+ polly::createTempScopInfoPass();
#ifdef SCOPLIB_FOUND
- createPoccPass();
- createScopLibExporterPass();
- createScopLibImporterPass();
+ polly::createPoccPass();
+ polly::createScopLibExporterPass();
+ polly::createScopLibImporterPass();
#endif
}
} PollyForcePassLinking; // Force link by creating a global definition.
diff --git a/polly/lib/Support/RegisterPasses.cpp b/polly/lib/Support/RegisterPasses.cpp
index 0ccc12f..ce2a4380 100644
--- a/polly/lib/Support/RegisterPasses.cpp
+++ b/polly/lib/Support/RegisterPasses.cpp
@@ -37,6 +37,7 @@
#include "llvm/Transforms/Vectorize.h"
using namespace llvm;
+using namespace polly;
cl::OptionCategory PollyCategory("Polly Options",
"Configure the polly loop optimizer");