RegisterPasses: Allow to disable code generation.

llvm-svn: 142765
This commit is contained in:
Tobias Grosser 2011-10-23 20:59:11 +00:00
parent addcfcac5c
commit f50dbc44ba
2 changed files with 13 additions and 1 deletions

View File

@ -28,6 +28,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,
@ -117,7 +121,9 @@ static void registerPollyPasses(const llvm::PassManagerBuilder &Builder,
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.

View File

@ -47,6 +47,12 @@ command line.
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>