LLVM API Documentation
#include <PassNameParser.h>
Public Member Functions | |
| bool | operator() (const PassInfo &P) const |
Use like this:
extern const char AllowedPassArgs[] = "-anders_aa -dse";
static cl::list< const PassInfo*, bool, FilteredPassNameParser<PassArgFilter<AllowedPassArgs> > > PassList(cl::desc("Passes available:"));
Only the -anders_aa and -dse options will be available to the user.
Definition at line 124 of file PassNameParser.h.
| bool llvm::PassArgFilter< Args >::operator() | ( | const PassInfo & | P | ) | const [inline] |