forked from OSchip/llvm-project
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
This commit is contained in:
parent
0fbbbf6aa7
commit
b921e6377b
|
@ -68,7 +68,8 @@ enum CodeGenChoice {
|
||||||
#ifdef CLOOG_FOUND
|
#ifdef CLOOG_FOUND
|
||||||
CODEGEN_CLOOG,
|
CODEGEN_CLOOG,
|
||||||
#endif
|
#endif
|
||||||
CODEGEN_ISL
|
CODEGEN_ISL,
|
||||||
|
CODEGEN_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CLOOG_FOUND
|
#ifdef CLOOG_FOUND
|
||||||
|
@ -86,6 +87,7 @@ CodeGenerator("polly-code-generator",
|
||||||
clEnumValN(CODEGEN_CLOOG, "cloog", "CLooG"),
|
clEnumValN(CODEGEN_CLOOG, "cloog", "CLooG"),
|
||||||
#endif
|
#endif
|
||||||
clEnumValN(CODEGEN_ISL, "isl", "isl code generator"),
|
clEnumValN(CODEGEN_ISL, "isl", "isl code generator"),
|
||||||
|
clEnumValN(CODEGEN_NONE, "none", "no code generation"),
|
||||||
clEnumValEnd),
|
clEnumValEnd),
|
||||||
cl::Hidden, cl::init(DefaultCodeGen), cl::ZeroOrMore);
|
cl::Hidden, cl::init(DefaultCodeGen), cl::ZeroOrMore);
|
||||||
|
|
||||||
|
@ -279,6 +281,8 @@ static void registerPollyPasses(llvm::PassManagerBase &PM) {
|
||||||
case CODEGEN_ISL:
|
case CODEGEN_ISL:
|
||||||
PM.add(polly::createIslCodeGenerationPass());
|
PM.add(polly::createIslCodeGenerationPass());
|
||||||
break;
|
break;
|
||||||
|
case CODEGEN_NONE:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CFGPrinter)
|
if (CFGPrinter)
|
||||||
|
|
Loading…
Reference in New Issue