LLVM API Documentation
#include <LegacyPassNameParser.h>
Public Member Functions | |
bool | operator() (const PassInfo &P) const |
===----------------------------------------------------------------------===// PassArgFilter - A filter for use with PassNameFilterParser that only accepts a Pass whose Arg matches certain strings.
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 132 of file LegacyPassNameParser.h.
bool llvm::PassArgFilter< Args >::operator() | ( | const PassInfo & | P | ) | const [inline] |
Definition at line 134 of file LegacyPassNameParser.h.
References llvm::PassInfo::getPassArgument(), and llvm::LibFunc::strstr.