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("pass-instrumentation", PassInstrumentationAnalysis(PIC)) 20SCOP_ANALYSIS("polly-ast", IslAstAnalysis()) 21SCOP_ANALYSIS("polly-dependences", DependenceAnalysis()) 22#undef SCOP_ANALYSIS 23 24#ifndef SCOP_PASS 25#define SCOP_PASS(NAME, CREATE_PASS) 26#endif 27SCOP_PASS("polly-export-jscop", JSONExportPass()) 28SCOP_PASS("polly-import-jscop", JSONImportPass()) 29SCOP_PASS("print<polly-ast>", IslAstPrinterPass(outs())) 30SCOP_PASS("print<polly-dependences>", DependenceInfoPrinterPass(outs())) 31SCOP_PASS("polly-codegen", CodeGenerationPass()) 32SCOP_PASS("polly-simplify", SimplifyPass()) 33SCOP_PASS("print<polly-simplify>", SimplifyPrinterPass(outs())) 34SCOP_PASS("polly-optree", ForwardOpTreePass()) 35SCOP_PASS("print<polly-optree>", ForwardOpTreePrinterPass(outs())) 36SCOP_PASS("polly-delicm", DeLICMPass()) 37SCOP_PASS("print<polly-delicm>", DeLICMPrinterPass(outs())) 38SCOP_PASS("polly-prune-unprofitable", PruneUnprofitablePass()) 39SCOP_PASS("polly-opt-isl", IslScheduleOptimizerPass()) 40SCOP_PASS("print<polly-opt-isl>", IslScheduleOptimizerPrinterPass(outs())) 41SCOP_PASS("polly-dce", DeadCodeElimPass()) 42#undef SCOP_PASS 43