|
LLVM
4.0.0
|
===-------------------------------------------------------------------—===// PassArgFilter - A filter for use with PassNameFilterParser that only accepts a Pass whose Arg matches certain strings. More...
#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 130 of file LegacyPassNameParser.h.
|
inline |
Definition at line 132 of file LegacyPassNameParser.h.
References AMDGPU::RuntimeMD::KeyName::Args, llvm::StringRef::contains(), and llvm::PassInfo::getPassArgument().
1.8.6