PollyPasses.def 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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
  7. #ifndef FUNCTION_PASS
  8. #define FUNCTION_PASS(NAME, CREATE_PASS)
  9. #endif
  10. FUNCTION_PASS("polly-prepare", CodePreparationPass())
  11. FUNCTION_PASS("print<polly-detect>", ScopAnalysisPrinterPass(errs()))
  12. FUNCTION_PASS("print<polly-function-scops>", ScopInfoPrinterPass(errs()))
  13. #undef FUNCTION_PASS
  14. #ifndef SCOP_ANALYSIS
  15. #define SCOP_ANALYSIS(NAME, CREATE_PASS)
  16. #endif
  17. SCOP_ANALYSIS("pass-instrumentation", PassInstrumentationAnalysis(PIC))
  18. SCOP_ANALYSIS("polly-ast", IslAstAnalysis())
  19. SCOP_ANALYSIS("polly-dependences", DependenceAnalysis())
  20. #undef SCOP_ANALYSIS
  21. #ifndef SCOP_PASS
  22. #define SCOP_PASS(NAME, CREATE_PASS)
  23. #endif
  24. SCOP_PASS("polly-export-jscop", JSONExportPass())
  25. SCOP_PASS("polly-import-jscop", JSONImportPass())
  26. SCOP_PASS("print<polly-ast>", IslAstPrinterPass(outs()))
  27. SCOP_PASS("print<polly-dependences>", DependenceInfoPrinterPass(outs()))
  28. SCOP_PASS("polly-codegen", CodeGenerationPass())
  29. SCOP_PASS("polly-simplify", SimplifyPass())
  30. SCOP_PASS("print<polly-simplify>", SimplifyPrinterPass(outs()))
  31. SCOP_PASS("polly-optree", ForwardOpTreePass())
  32. SCOP_PASS("print<polly-optree>", ForwardOpTreePrinterPass(outs()))
  33. SCOP_PASS("polly-delicm", DeLICMPass())
  34. SCOP_PASS("print<polly-delicm>", DeLICMPrinterPass(outs()))
  35. SCOP_PASS("polly-prune-unprofitable", PruneUnprofitablePass())
  36. SCOP_PASS("polly-opt-isl", IslScheduleOptimizerPass())
  37. SCOP_PASS("print<polly-opt-isl>", IslScheduleOptimizerPrinterPass(outs()))
  38. SCOP_PASS("polly-dce", DeadCodeElimPass())
  39. #undef SCOP_PASS