[PATCH] D11032: [PM] Enable registration of out-of-tree or plugin passes

Philip Pfaffe philip.pfaffe at gmail.com
Fri Jul 10 10:12:15 PDT 2015


philip.pfaffe added a comment.

> I don't understand how you intend for this to be used. If I wanted to add a new pass that would run after InstCombine, for example, how would I do that? How about adding a pass to be run at the very end of the pass manager, or at the very beginning?


Currently, this is primarily a supplement to PassBuilder. So pass scheduling is done as it always was. In your example: "module(my-awesome-pass,instcombine)". Now, PassBuilder will first invoke the registered Hook for my-awesome-pass (which will in turn add the pass to the PassManager), and subsequently put instcombine into the PassManager.

This is not limited to PassBuilder though. Any other entity setting up PassManagers may do the same.


Repository:
  rL LLVM

http://reviews.llvm.org/D11032







More information about the llvm-commits mailing list