[polly] r177516 - Add option -polly-code-generator=none

Tobias Grosser grosser at fim.uni-passau.de
Wed Mar 20 06:03:27 PDT 2013


Author: grosser
Date: Wed Mar 20 08:03:26 2013
New Revision: 177516

URL: http://llvm.org/viewvc/llvm-project?rev=177516&view=rev
Log:
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

Modified:
    polly/trunk/lib/RegisterPasses.cpp

Modified: polly/trunk/lib/RegisterPasses.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/RegisterPasses.cpp?rev=177516&r1=177515&r2=177516&view=diff
==============================================================================
--- polly/trunk/lib/RegisterPasses.cpp (original)
+++ polly/trunk/lib/RegisterPasses.cpp Wed Mar 20 08:03:26 2013
@@ -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::Pa
   case CODEGEN_ISL:
     PM.add(polly::createIslCodeGenerationPass());
     break;
+  case CODEGEN_NONE:
+    break;
   }
 
   if (CFGPrinter)





More information about the llvm-commits mailing list