forked from OSchip/llvm-project
RegisterPasses: Allow to disable code generation.
llvm-svn: 142765
This commit is contained in:
parent
addcfcac5c
commit
f50dbc44ba
|
@ -28,6 +28,10 @@
|
||||||
|
|
||||||
using namespace llvm;
|
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>
|
static cl::opt<bool>
|
||||||
PollyViewer("enable-polly-viewer",
|
PollyViewer("enable-polly-viewer",
|
||||||
cl::desc("Enable the Polly DOT viewer in -O3"), cl::Hidden,
|
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::createDOTOnlyPrinterPass());
|
||||||
|
|
||||||
PM.add(polly::createIslScheduleOptimizerPass());
|
PM.add(polly::createIslScheduleOptimizerPass());
|
||||||
PM.add(polly::createCodeGenerationPass());
|
|
||||||
|
if (!DisableCodegen)
|
||||||
|
PM.add(polly::createCodeGenerationPass());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute Polly together with a set of preparing passes.
|
// Execute Polly together with a set of preparing passes.
|
||||||
|
|
|
@ -47,6 +47,12 @@ command line.
|
||||||
To limit the execution of Polly to a single function, use the option
|
To limit the execution of Polly to a single function, use the option
|
||||||
'-polly-detect-only=functionname'.
|
'-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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue