Simplify import/export command line flags.
authorTobias Grosser <grosser@fim.uni-passau.de>
Tue, 24 Apr 2012 16:12:34 +0000 (16:12 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Tue, 24 Apr 2012 16:12:34 +0000 (16:12 +0000)
Instead of -polly-run-import-jscop and -polly-run-export-jscop, we just use
-polly-import and -polly-export.

llvm-svn: 155446

polly/lib/RegisterPasses.cpp
polly/www/example_load_Polly_into_clang.html

index 6161768be39b55693af4896653a12cafd743ad84..6736f26a1514ddf1c6c6faaeb2753c26f442e90a 100644 (file)
@@ -62,17 +62,14 @@ Optimizer("polly-optimizer",
           cl::Hidden, cl::init(OPTIMIZER_ISL), cl::ZeroOrMore);
 
 static cl::opt<bool>
-ImportJScop("polly-run-import-jscop",
-            cl::desc("Export the JScop description of the detected Scops"),
+ImportJScop("polly-import",
+            cl::desc("Export the polyhedral description of the detected Scops"),
             cl::Hidden, cl::init(false), cl::ZeroOrMore);
 static cl::opt<bool>
-ExportJScop("polly-run-export-jscop",
-            cl::desc("Export the JScop description of the detected Scops"),
-            cl::Hidden, cl::init(false), cl::ZeroOrMore);
-static cl::opt<bool>
-ExportCLooG("polly-run-export-cloog",
-            cl::desc("Export the CLooG input files for the detected Scops"),
+ExportJScop("polly-export",
+            cl::desc("Export the polyhedral description of the detected Scops"),
             cl::Hidden, cl::init(false), cl::ZeroOrMore);
+
 static cl::opt<bool>
 PollyViewer("polly-show",
        cl::desc("Enable the Polly DOT viewer in -O3"), cl::Hidden,
@@ -213,9 +210,6 @@ void registerPollyPasses(llvm::PassManagerBase &PM, bool DisableCodegen) {
   if (ExportJScop)
     PM.add(polly::createJSONExporterPass());
 
-  if (ExportCLooG)
-    PM.add(polly::createCloogExporterPass());
-
   if (RunCodegen)
     PM.add(polly::createCodeGenerationPass());
 
index 6e9bc50f502eb77f45a79f3fbe60e84a9875e371..d7c56e9217960c2eadbc72241e8ade430e2d5024 100644 (file)
@@ -120,10 +120,12 @@ no aliasing is possible. In case the user knows no aliasing can happen in the
 code the <b>-polly-ignore-aliasing</b> can be used to disable the check for
 possible aliasing.
 
-<h3>Importing and exporting JScop files</h3>
-The flags <b>-polly-run-import-jscop</b> and <b>-polly-run-export-jscop</b>
-allow the export and reimport of the polyhedral representation that Polly
-generates for the Scops.
+<h3>Import / Export</h3>
+The flags <b>-polly-import</b> and <b>-polly-export</b> allow the export and
+reimport of the polyhedral representation. By exporting, modifying and
+reimporting the polyhedral representation externally calculated transformations
+can be applied. This enables external optimizers or the manual optimization of
+specific SCoPs.
 </div>
 </body>
 </html>