LLVM API Documentation
#include <PassNameParser.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 127 of file PassNameParser.h.
|
inline |
Definition at line 129 of file PassNameParser.h.
References llvm::PassInfo::getPassArgument(), and llvm::LibFunc::strstr.