summaryrefslogtreecommitdiffstats
path: root/polly/lib/RegisterPasses.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-10-21 21:48:21 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2012-10-21 21:48:21 +0000
commit0c55514a43af13d26534c30fcae0c6a9c408bf19 (patch)
tree841ef7ec14b1b848d1f7c532900e347c67cfc9cd /polly/lib/RegisterPasses.cpp
parent6c8e6966186179e04a9a6310af572923e11eb608 (diff)
downloadbcm5719-llvm-0c55514a43af13d26534c30fcae0c6a9c408bf19.tar.gz
bcm5719-llvm-0c55514a43af13d26534c30fcae0c6a9c408bf19.zip
autoconf/cmake: Always require isl code generation.
This change ensures that isl is only detected if it includes code generation support. This allows us to remove a lot of conditional compilation and also avoids missing test cases in case the feature is not available. llvm-svn: 166403
Diffstat (limited to 'polly/lib/RegisterPasses.cpp')
-rw-r--r--polly/lib/RegisterPasses.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp
index c87b6c75183..d74e87f20a4 100644
--- a/polly/lib/RegisterPasses.cpp
+++ b/polly/lib/RegisterPasses.cpp
@@ -64,23 +64,11 @@ Optimizer("polly-optimizer",
clEnumValEnd),
cl::Hidden, cl::init(OPTIMIZER_ISL), cl::ZeroOrMore);
-#ifndef CLOOG_FOUND
-#ifndef ISL_CODEGEN_FOUND
- #error No code generator found.
-#endif
-#endif
-
enum CodeGenChoice {
#ifdef CLOOG_FOUND
- CODEGEN_CLOOG
- #ifdef ISL_CODEGEN_FOUND
- , // Avoid a warning in C++03 pedantic mode
- #endif
+ CODEGEN_CLOOG,
#endif
-
-#ifdef ISL_CODEGEN_FOUND
CODEGEN_ISL
-#endif
};
#ifdef CLOOG_FOUND
@@ -97,9 +85,7 @@ CodeGenerator("polly-code-generator",
#ifdef CLOOG_FOUND
clEnumValN(CODEGEN_CLOOG, "cloog", "CLooG"),
#endif
-#ifdef ISL_CODEGEN_FOUND
clEnumValN(CODEGEN_ISL, "isl", "isl code generator"),
-#endif
clEnumValEnd),
cl::Hidden, cl::init(DefaultCodeGen), cl::ZeroOrMore);
@@ -167,18 +153,14 @@ static void initializePollyPasses(PassRegistry &Registry) {
initializeCloogInfoPass(Registry);
initializeCodeGenerationPass(Registry);
#endif
-#ifdef ISL_CODEGEN_FOUND
initializeIslCodeGenerationPass(Registry);
-#endif
initializeCodePreparationPass(Registry);
initializeDeadCodeElimPass(Registry);
initializeDependencesPass(Registry);
initializeIndependentBlocksPass(Registry);
initializeJSONExporterPass(Registry);
initializeJSONImporterPass(Registry);
-#ifdef ISL_CODEGEN_FOUND
initializeIslAstInfoPass(Registry);
-#endif
initializeIslScheduleOptimizerPass(Registry);
#ifdef SCOPLIB_FOUND
initializePoccPass(Registry);
@@ -294,11 +276,9 @@ static void registerPollyPasses(llvm::PassManagerBase &PM) {
}
break;
#endif
-#ifdef ISL_CODEGEN_FOUND
case CODEGEN_ISL:
PM.add(polly::createIslCodeGenerationPass());
break;
-#endif
}
if (CFGPrinter)
OpenPOWER on IntegriCloud