[PM] Move the analysis registry into the Passes.cpp file and provide
authorChandler Carruth <chandlerc@gmail.com>
Tue, 6 Jan 2015 02:21:37 +0000 (02:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 6 Jan 2015 02:21:37 +0000 (02:21 +0000)
commitb70f6734901eec6b20e44ab140d345aa38503a5d
tree0b63aa5ede7fbc2ebf0de6a57478db784e14bc53
parent628503e4d4e5896badec12beb71bbef923ef1d29
[PM] Move the analysis registry into the Passes.cpp file and provide
a normal interface for it in Passes.h.

This gives us essentially a single interface for running pass managers
which are provided from the bottom of the LLVM stack through interfaces
at the top of the LLVM stack that populate them with all of the
different analyses available throughout. It also means there is a single
blob of code that needs to include all of the pass headers and needs to
deal with the registry of passes and parsing names.

No functionality changed intended, should just be cleanup.

llvm-svn: 225237
llvm/tools/opt/NewPMDriver.cpp
llvm/tools/opt/Passes.cpp
llvm/tools/opt/Passes.h