[PATCH] D35458: [Polly][PM][WIP] Polly pass registration

Philip Pfaffe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 15 15:20:40 PDT 2017


philip.pfaffe created this revision.
philip.pfaffe added a project: Polly.
Herald added a reviewer: bollu.

This patch is a first attempt at registering Polly passes with the LLVM tools. Tool plugins are still unsupported, but this registration is usable from the tools if Polly is linked into them (albeit requiring minimal patches to those tools). Registration requires a small amount of machinery (the owning analysis proxies), necessary for injecting ScopAnalysisManager objects into the calling tools.

This patch is marked WIP because the registration is incomplete. Parsing manual pipelines is fully supported, but default pass injection into the https://reviews.llvm.org/owners/package/3/ pipeline is lacking, mostly because there is opportunity for some redesign here, I believe. The first point of order would be insertion points. I think it makes sense to run before the vectorizers. Running Polly Early, however, is weird. Mostly because it actually is the default (which to me is unexpected), and because Polly runs it's own https://reviews.llvm.org/owners/package/1/ pipeline. Why not instead insert it at an appropriate place somewhere after simplification happend? Running after the loop optimizers seems intuitive, but it also seems wasteful, since multiple consecutive loops might well be a single scop, and we don't need to run for all of them.

My second request for comments would be regarding all those smallish helper passes we have,  like PollyViewer, PollyPrinter, PollyImportJScop. Right now these are controlled by command line options, deciding whether they should be part of the Polly pipeline. What is your opinion on treating them like real passes, and have the user write an appropriate pipeline if they want to use any of them?


Repository:
  rL LLVM

https://reviews.llvm.org/D35458

Files:
  include/polly/ScopPass.h
  lib/Analysis/ScopPass.cpp
  lib/Support/PollyPasses.def
  lib/Support/RegisterPasses.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35458.106790.patch
Type: text/x-patch
Size: 10742 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170715/79b3cc0a/attachment.bin>


More information about the llvm-commits mailing list