summaryrefslogtreecommitdiffstats
path: root/polly/lib/RegisterPasses.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-08-02 07:47:26 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2012-08-02 07:47:26 +0000
commitc11349c55a90122a64bef2a6e1b1eb6e366d8e96 (patch)
tree43b28ee683c7a05e81210e9d7ee666223bacea1d /polly/lib/RegisterPasses.cpp
parent7020f516227e0718e55bef21d2ef685a9b8c4839 (diff)
downloadbcm5719-llvm-c11349c55a90122a64bef2a6e1b1eb6e366d8e96.tar.gz
bcm5719-llvm-c11349c55a90122a64bef2a6e1b1eb6e366d8e96.zip
Add support for libpluto as the scheduling optimizer.
llvm-svn: 161157
Diffstat (limited to 'polly/lib/RegisterPasses.cpp')
-rw-r--r--polly/lib/RegisterPasses.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp
index 410700cc134..e54131897e0 100644
--- a/polly/lib/RegisterPasses.cpp
+++ b/polly/lib/RegisterPasses.cpp
@@ -48,6 +48,9 @@ enum OptimizerChoice {
#ifdef SCOPLIB_FOUND
OPTIMIZER_POCC,
#endif
+#ifdef PLUTO_FOUND
+ OPTIMIZER_PLUTO,
+#endif
OPTIMIZER_ISL
};
@@ -56,6 +59,9 @@ Optimizer("polly-optimizer",
cl::desc("Select the scheduling optimizer"),
cl::values(
clEnumValN(OPTIMIZER_NONE, "none", "No optimizer"),
+#ifdef PLUTO_FOUND
+ clEnumValN(OPTIMIZER_PLUTO, "pluto", "The Pluto scheduling optimizer"),
+#endif
#ifdef SCOPLIB_FOUND
clEnumValN(OPTIMIZER_POCC, "pocc", "The PoCC scheduling optimizer"),
#endif
@@ -220,11 +226,17 @@ static void registerPollyPasses(llvm::PassManagerBase &PM) {
break; /* Do nothing */
#ifdef SCOPLIB_FOUND
- case OPTIMIZER_POCC
+ case OPTIMIZER_POCC:
PM.add(polly::createPoccPass());
break;
#endif
+#ifdef PLUTO_FOUND
+ case OPTIMIZER_PLUTO:
+ PM.add(polly::createPlutoOptimizerPass());
+ break;
+#endif
+
case OPTIMIZER_ISL:
PM.add(polly::createIslScheduleOptimizerPass());
break;
OpenPOWER on IntegriCloud