diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-20 13:03:26 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2013-03-20 13:03:26 +0000 |
commit | b921e6377b86e3445975073bbb8154ec0dd6818d (patch) | |
tree | 1c64ec9ea1157e280e3fe0c7c23b06a776342c30 | |
parent | 0fbbbf6aa73dae363fd9ab49553704f5ae90b2d9 (diff) | |
download | bcm5719-llvm-b921e6377b86e3445975073bbb8154ec0dd6818d.tar.gz bcm5719-llvm-b921e6377b86e3445975073bbb8154ec0dd6818d.zip |
Add option -polly-code-generator=none
This allows us to test Polly and the Polly optimizer without actually doing
code generation at the end. By enabling this option, we can also measure the
compile time overhead due to code generation and the cost of LLVM optimizing the
newly generated code.t
llvm-svn: 177516
-rw-r--r-- | polly/lib/RegisterPasses.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/polly/lib/RegisterPasses.cpp b/polly/lib/RegisterPasses.cpp index c0ce8577c58..a4e49dd9547 100644 --- a/polly/lib/RegisterPasses.cpp +++ b/polly/lib/RegisterPasses.cpp @@ -68,7 +68,8 @@ enum CodeGenChoice { #ifdef CLOOG_FOUND CODEGEN_CLOOG, #endif - CODEGEN_ISL + CODEGEN_ISL, + CODEGEN_NONE }; #ifdef CLOOG_FOUND @@ -86,6 +87,7 @@ CodeGenerator("polly-code-generator", clEnumValN(CODEGEN_CLOOG, "cloog", "CLooG"), #endif clEnumValN(CODEGEN_ISL, "isl", "isl code generator"), + clEnumValN(CODEGEN_NONE, "none", "no code generation"), clEnumValEnd), cl::Hidden, cl::init(DefaultCodeGen), cl::ZeroOrMore); @@ -279,6 +281,8 @@ static void registerPollyPasses(llvm::PassManagerBase &PM) { case CODEGEN_ISL: PM.add(polly::createIslCodeGenerationPass()); break; + case CODEGEN_NONE: + break; } if (CFGPrinter) |