Add support for plugins add passes to the default set of passes. The standard set...
authorDavid Chisnall <csdavec@swan.ac.uk>
Tue, 10 May 2011 21:36:48 +0000 (21:36 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Tue, 10 May 2011 21:36:48 +0000 (21:36 +0000)
commit0fa92e55c3b9a7c7cadd9dde0193fbbecdde977c
tree04f3f28212ee16dd8e12ddfa8bb587c9958f54ae
parentd673057c968ee6da2fc9084a26cbd1a500002d2b
Add support for plugins add passes to the default set of passes.  The standard set of passes used by front ends can now be modified by LLVM plugins, without needing to modify any front ends.

Still to do:

- Allow replacing / removing passes (infrastructure there, just needs an infrastructure exposed)
- Defining sets of passes to be added or removed as a group
- Extending the support to allow user-defined groups of optimisations
- Allow plugins to be specified for loading automatically (e.g. from plugins.conf or some similar mechanism)

Reviewed by Nick Lewycky.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131155 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/PassSupport.h
include/llvm/Support/StandardPasses.h
lib/VMCore/StandardPasses.cpp [new file with mode: 0644]