PollyPasses.def 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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(llvm::errs()))
  12. FUNCTION_PASS("print<polly-function-scops>", ScopInfoPrinterPass(llvm::errs()))
  13. FUNCTION_PASS("polly-scop-viewer", ScopViewer())
  14. FUNCTION_PASS("polly-scop-only-viewer", ScopOnlyViewer())
  15. FUNCTION_PASS("polly-scop-printer", ScopPrinter())
  16. FUNCTION_PASS("polly-scop-only-printer", ScopOnlyPrinter())
  17. #undef FUNCTION_PASS
  18. #ifndef SCOP_ANALYSIS
  19. #define SCOP_ANALYSIS(NAME, CREATE_PASS)
  20. #endif
  21. SCOP_ANALYSIS("pass-instrumentation", llvm::PassInstrumentationAnalysis(PIC))
  22. SCOP_ANALYSIS("polly-ast", IslAstAnalysis())
  23. SCOP_ANALYSIS("polly-dependences", DependenceAnalysis())
  24. #undef SCOP_ANALYSIS
  25. #ifndef SCOP_PASS
  26. #define SCOP_PASS(NAME, CREATE_PASS)
  27. #endif
  28. SCOP_PASS("polly-export-jscop", JSONExportPass())
  29. SCOP_PASS("polly-import-jscop", JSONImportPass())
  30. SCOP_PASS("print<polly-ast>", IslAstPrinterPass(llvm::outs()))
  31. SCOP_PASS("print<polly-dependences>", DependenceInfoPrinterPass(llvm::outs()))
  32. SCOP_PASS("polly-codegen", CodeGenerationPass())
  33. SCOP_PASS("polly-simplify", SimplifyPass())
  34. SCOP_PASS("print<polly-simplify>", SimplifyPrinterPass(llvm::outs()))
  35. SCOP_PASS("polly-optree", ForwardOpTreePass())
  36. SCOP_PASS("print<polly-optree>", ForwardOpTreePrinterPass(llvm::outs()))
  37. SCOP_PASS("polly-delicm", DeLICMPass())
  38. SCOP_PASS("print<polly-delicm>", DeLICMPrinterPass(llvm::outs()))
  39. SCOP_PASS("polly-prune-unprofitable", PruneUnprofitablePass())
  40. SCOP_PASS("polly-opt-isl", IslScheduleOptimizerPass())
  41. SCOP_PASS("print<polly-opt-isl>", IslScheduleOptimizerPrinterPass(llvm::outs()))
  42. SCOP_PASS("polly-dce", DeadCodeElimPass())
  43. SCOP_PASS("polly-mse", MaximalStaticExpansionPass())
  44. SCOP_PASS("print<polly-mse>", MaximalStaticExpansionPrinterPass(llvm::outs()))
  45. #undef SCOP_PASS