[PATCH] [PM] Create a separate library for high-level pass management code.

hfinkel at anl.gov hfinkel at anl.gov
Wed Mar 4 08:01:07 PST 2015

> The class is a "PassBuilder" but this name I'm less happy with. It doesn't build passes in any traditional sense and isn't a Builder-style API at all. The class is a PassRegisterer or PassAdder, but neither of those really make a lot of sense. This class is responsible for constructing passes for registry in an analysis manager or for population of a pass pipeline. If anyone has a better name, I would love to hear it. The other candidate I looked at was PassRegistrar, but that doesn't really fit either. There is no register of all the passes in use, and so I think continuing the "registry" analog outside of the registry of pass *names* and *types* is a mistake. The objects themselves are just objects with the new pass manager.

A little verbose, but how about something like PassPipelineBuilder?



More information about the llvm-commits mailing list