LLVM
8.0.1
|
===-------------------------------------------------------------------—===// PassArgFilter - A filter for use with PassNameFilterParser that only accepts a Pass whose Arg matches certain strings. More...
#include "llvm/IR/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 llvm::AMDGPU::HSAMD::Kernel::Key::Args, llvm::StringRef::contains(), and llvm::PassInfo::getPassArgument().