1#ifndef FUNCTION_ANALYSIS 2#define FUNCTION_ANALYSIS(NAME, CREATE_PASS) 3#endif 4FUNCTION_ANALYSIS("polly-detect", ScopAnalysis()) 5FUNCTION_ANALYSIS("polly-function-scops", ScopInfoAnalysis()) 6#undef FUNCTION_ANALYSIS 7 8#ifndef FUNCTION_PASS 9#define FUNCTION_PASS(NAME, CREATE_PASS) 10#endif 11FUNCTION_PASS("polly-prepare", CodePreparationPass()) 12FUNCTION_PASS("print<polly-detect>", ScopAnalysisPrinterPass(errs())) 13FUNCTION_PASS("print<polly-function-scops>", ScopInfoPrinterPass(errs())) 14#undef FUNCTION_PASS 15 16#ifndef SCOP_ANALYSIS 17#define SCOP_ANALYSIS(NAME, CREATE_PASS) 18#endif 19SCOP_ANALYSIS("polly-ast", IslAstAnalysis()) 20SCOP_ANALYSIS("polly-dependences", DependenceAnalysis()) 21#undef SCOP_ANALYSIS 22 23#ifndef SCOP_PASS 24#define SCOP_PASS(NAME, CREATE_PASS) 25#endif 26SCOP_PASS("polly-export-jscop", JSONExportPass()) 27SCOP_PASS("polly-import-jscop", JSONImportPass()) 28SCOP_PASS("print<polly-ast>", IslAstPrinterPass(outs())) 29SCOP_PASS("print<polly-dependences>", DependenceInfoPrinterPass(outs())) 30SCOP_PASS("polly-codegen", CodeGenerationPass()) 31SCOP_PASS("polly-simplify", SimplifyPass()) 32SCOP_PASS("print<polly-simplify>", SimplifyPrinterPass(outs())) 33#undef SCOP_PASS 34