[llvm-commits] [polly] r142765 - in /polly/trunk: lib/RegisterPasses.cpp www/example_load_Polly_into_clang.html
Tobias Grosser
grosser at fim.uni-passau.de
Sun Oct 23 13:59:11 PDT 2011
Author: grosser
Date: Sun Oct 23 15:59:11 2011
New Revision: 142765
URL: http://llvm.org/viewvc/llvm-project?rev=142765&view=rev
Log:
RegisterPasses: Allow to disable code generation.
Modified:
polly/trunk/lib/RegisterPasses.cpp
polly/trunk/www/example_load_Polly_into_clang.html
Modified: polly/trunk/lib/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegisterPasses.cpp?rev=142765&r1=142764&r2=142765&view=diff
==============================================================================
--- polly/trunk/lib/RegisterPasses.cpp (original)
+++ polly/trunk/lib/RegisterPasses.cpp Sun Oct 23 15:59:11 2011
@@ -29,6 +29,10 @@
using namespace llvm;
static cl::opt<bool>
+DisableCodegen("polly-no-codegen",
+ cl::desc("Disable Polly Code Generation"), cl::Hidden,
+ cl::init(false));
+static cl::opt<bool>
PollyViewer("enable-polly-viewer",
cl::desc("Enable the Polly DOT viewer in -O3"), cl::Hidden,
cl::value_desc("Run the Polly DOT viewer at -O3"),
@@ -117,7 +121,9 @@
PM.add(polly::createDOTOnlyPrinterPass());
PM.add(polly::createIslScheduleOptimizerPass());
- PM.add(polly::createCodeGenerationPass());
+
+ if (!DisableCodegen)
+ PM.add(polly::createCodeGenerationPass());
}
// Execute Polly together with a set of preparing passes.
Modified: polly/trunk/www/example_load_Polly_into_clang.html
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/example_load_Polly_into_clang.html?rev=142765&r1=142764&r2=142765&view=diff
==============================================================================
--- polly/trunk/www/example_load_Polly_into_clang.html (original)
+++ polly/trunk/www/example_load_Polly_into_clang.html Sun Oct 23 15:59:11 2011
@@ -47,6 +47,12 @@
To limit the execution of Polly to a single function, use the option
'-polly-detect-only=functionname'.
+<h3>Disable LLVM-IR generation</h3>
+Polly normally regenerates LLVM-IR from the Polyhedral representation. To only
+see the effects of the preparing transformation, but to disable Polly code
+generation add the option 'polly-no-codegen'.
+
+
</div>
</body>
</html>
More information about the llvm-commits
mailing list