[PATCH] D11032: [PM] Enable registration of out-of-tree or plugin passes
Philip Pfaffe
philip.pfaffe at gmail.com
Fri Jul 10 04:58:04 PDT 2015
philip.pfaffe added a comment.
> Does the original pass still run?
Not in this case, no. That way, you can actively override a built-in pass.
> Why not give the hook the ability to insert a new pass somewhere into the pipeline (perhaps by being able to examine the current pipeline configuration and modifying it)?
I think that would mix different responsibilities. It is the PassBuilder's task to construct the pipeline from its textual description, and I as a user would expect the pipeline to afterwards consist of precisely the passes I specified, and in that order. I think a pass should not be able to take this away from the PassBuilder and modify the pipeline setup externally (of course besides adding itself to the PassManager on request).
Repository:
rL LLVM
http://reviews.llvm.org/D11032
More information about the llvm-commits
mailing list