class PassArgFilter

Declaration

template <const char* Args>
class PassArgFilter { /* full declaration omitted */ };

Description

===----------------------------------------------------------------------===// 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.

Declared at: llvm/include/llvm/IR/LegacyPassNameParser.h:129

Templates

const char * Args