Add a mechanism for optimisation plugins to register passes that all front ends can...
authorDavid Chisnall <csdavec@swan.ac.uk>
Tue, 16 Aug 2011 13:58:41 +0000 (13:58 +0000)
committerDavid Chisnall <csdavec@swan.ac.uk>
Tue, 16 Aug 2011 13:58:41 +0000 (13:58 +0000)
commit7a817eae6cb00a2ba5ec2a4127775b839a357e4c
treed1b9f1d3cba0940c1f946a7f96ba6fdcadf3276a
parent48c4c6807b2f1b1d0d61c69c1a5c9328ade26941
Add a mechanism for optimisation plugins to register passes that all front ends can use without needing to be aware of the plugin (or the plugin be aware of the front end).

Before 3.0, I'd like to add a mechanism for automatically loading a set of plugins from a config file.  API suggestions welcome...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137717 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/PassManagerBuilder.h
lib/Transforms/IPO/PassManagerBuilder.cpp