[Polly][PM][WIP] Polly pass registration
[polly-mirror.git] / lib / Support / PollyPasses.def
blob288ec9d654729daf7c3432752f20dc53981a6bce
1 #ifndef FUNCTION_ANALYSIS
2 #define FUNCTION_ANALYSIS(NAME, CREATE_PASS)
3 #endif
4 FUNCTION_ANALYSIS("polly-detect", ScopAnalysis())
5 FUNCTION_ANALYSIS("polly-function-scops", ScopInfoAnalysis())
6 #undef FUNCTION_ANALYSIS
8 #ifndef FUNCTION_PASS
9 #define FUNCTION_PASS(NAME, CREATE_PASS)
10 #endif
11 FUNCTION_PASS("polly-prepare", CodePreparationPass())
12 FUNCTION_PASS("print<polly-detect>", ScopAnalysisPrinterPass(errs()))
13 FUNCTION_PASS("print<polly-function-scops>", ScopInfoPrinterPass(errs()))
14 #undef FUNCTION_PASS
16 #ifndef SCOP_ANALYSIS
17 #define SCOP_ANALYSIS(NAME, CREATE_PASS)
18 #endif
19 SCOP_ANALYSIS("polly-ast", IslAstAnalysis())
20 SCOP_ANALYSIS("polly-dependences", DependenceAnalysis())
21 #undef SCOP_ANALYSIS
23 #ifndef SCOP_PASS
24 #define SCOP_PASS(NAME, CREATE_PASS)
25 #endif
26 SCOP_PASS("print<polly-ast>", IslAstPrinterPass(outs()))
27 SCOP_PASS("print<polly-dependences>", DependenceInfoPrinterPass(outs()))
28 SCOP_PASS("polly-codegen", CodeGenerationPass())
29 #undef SCOP_PASS